Package net.sf.colossus.variant
Class CreatureTypeTitan
- java.lang.Object
-
- net.sf.colossus.variant.CreatureType
-
- net.sf.colossus.variant.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 wholeCreatureTypeinterface 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, delegatingCreatureType.getPower()toPlayer.getTitanPower().- Author:
- Romain Dolbeau
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.logging.LoggerLOGGER-
Fields inherited from class net.sf.colossus.variant.CreatureType
NAME_ORDER
-
-
Constructor Summary
Constructors Constructor Description 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPointValue()booleanisImmortal()booleanisTitan()Returns true if this is a Titan.-
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
-
-
-
-
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
-
isImmortal
public boolean isImmortal()
- Overrides:
isImmortalin classCreatureType
-
isTitan
public boolean isTitan()
Description copied from class:CreatureTypeReturns true if this is a Titan. The default implementation is a constant false, to be overridden in classes representing Titans.- Overrides:
isTitanin classCreatureType- Returns:
- true iff this creature type is a Titan.
-
getPointValue
public int getPointValue()
- Overrides:
getPointValuein classCreatureType
-
-