Package net.sf.colossus.variant
Class CreatureTypeTitan
java.lang.Object
net.sf.colossus.variant.CreatureType
net.sf.colossus.variant.CreatureTypeTitan
- All Implemented Interfaces:
Comparable<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 Summary
FieldsFields inherited from class net.sf.colossus.variant.CreatureType
NAME_ORDER
-
Constructor Summary
ConstructorsConstructorDescriptionCreatureTypeTitan
(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 Summary
Methods inherited from class net.sf.colossus.variant.CreatureType
canChangeValue, compareTo, equals, getBaseColor, getImageName, getImageNames, getKillValue, getMaxCount, getName, getPluralName, getPoison, getPower, getSkill, getSlows, hashCode, isDemiLord, isFlier, isLord, isLordOrDemiLord, isNativeAt, isNativeAt, isNativeDune, isNativeIn, isNativeRiver, isNativeSlope, isPoison, isRangestriker, isSummonable, isWaterDwelling, setMaxCount, setNoBaseColor, slows, toString, useMagicMissile
-
Field Details
-
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 classCreatureType
-
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 classCreatureType
- Returns:
- true iff this creature type is a Titan.
-
getPointValue
public int getPointValue()- Overrides:
getPointValue
in classCreatureType
-