Class CreatureTypeTitan

java.lang.Object
net.sf.colossus.variant.CreatureType
net.sf.colossus.variant.CreatureTypeTitan
All Implemented Interfaces:
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 Details

    • LOGGER

      private static final Logger LOGGER
  • Constructor Details

    • CreatureTypeTitan

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

    • isImmortal

      public boolean isImmortal()
      Overrides:
      isImmortal in class CreatureType
    • 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.
    • getPointValue

      public int getPointValue()
      Overrides:
      getPointValue in class CreatureType