public class CreatureTypeTitan extends CreatureType
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().| Modifier and Type | Field and Description |
|---|---|
private static java.util.logging.Logger |
LOGGER |
NAME_ORDER| Constructor and 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) |
| Modifier and Type | Method and Description |
|---|---|
int |
getPointValue() |
boolean |
isImmortal() |
boolean |
isTitan()
Returns true if this is a Titan.
|
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, useMagicMissilepublic 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)
public boolean isImmortal()
isImmortal in class CreatureTypepublic boolean isTitan()
CreatureTypeisTitan in class CreatureTypepublic int getPointValue()
getPointValue in class CreatureType