Class CreatureTypeTitan

  • All Implemented Interfaces:
    java.lang.Comparable<CreatureType>

    public class CreatureTypeTitan
    extends CreatureType
    Class CreatureTitan represent the CONSTANT information about a Titan (the game) Titan (the creature). Game related info is in Critter. Counts of recruited/available/dead are in Caretaker. TODO this class doesn't really fulfill the whole CreatureType interface since it can't handle getPower() at the moment (and thus some other things don't work). The solution could be to consider each Titan a type of creature of his own, distinguished by the Player owning them, which then could be stored as member in the class, delegating CreatureType.getPower() to Player.getTitanPower().
    Author:
    Romain Dolbeau
    • Field Detail

      • LOGGER

        private static final java.util.logging.Logger LOGGER
    • Constructor Detail

      • CreatureTypeTitan

        public CreatureTypeTitan​(java.lang.String name,
                                 int power,
                                 int skill,
                                 boolean rangestrikes,
                                 boolean flies,
                                 java.util.Set<HazardTerrain> nativeTerrrains,
                                 boolean nativeSlope,
                                 boolean nativeRiver,
                                 boolean nativeDune,
                                 boolean waterDwelling,
                                 boolean magicMissile,
                                 boolean summonable,
                                 boolean lord,
                                 boolean demilord,
                                 int maxCount,
                                 java.lang.String pluralName,
                                 java.lang.String baseColor,
                                 int poison,
                                 int slows)
    • Method Detail

      • isTitan

        public boolean isTitan()
        Description copied from class: CreatureType
        Returns true if this is a Titan. The default implementation is a constant false, to be overridden in classes representing Titans.
        Overrides:
        isTitan in class CreatureType
        Returns:
        true iff this creature type is a Titan.