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 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 |
private static java.util.logging.Logger |
LOGGER
|
Constructor Summary |
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)
|
Methods inherited from class net.sf.colossus.variant.CreatureType |
canChangeValue, compareTo, equals, getBaseColor, getImageName, getImageNames, getKillValue, getMaxCount, getName, getPluralName, getPower, getSkill, hashCode, isDemiLord, isFlier, isLord, isLordOrDemiLord, isNativeAt, isNativeAt, isNativeDune, isNativeIn, isNativeRiver, isNativeSlope, isRangestriker, isSummonable, isWaterDwelling, setMaxCount, setNoBaseColor, toString, useMagicMissile |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
LOGGER
private static final java.util.logging.Logger LOGGER
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)
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