public class Creature
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private BattleHex |
currentHex |
private int |
hits
Damage taken
|
static java.util.Comparator<Creature> |
IMPORTANCE_ORDER
Implements an order on Critters by some definition of importance.
|
protected Legion |
legion |
private static java.util.logging.Logger |
LOGGER |
private int |
poisonDamage |
private int |
slowed |
private BattleHex |
startingHex |
private boolean |
struck |
private CreatureType |
type |
Constructor and Description |
---|
Creature(CreatureType type,
Legion legion) |
Modifier and Type | Method and Description |
---|---|
void |
addPoisonDamage(int damage) |
void |
addSlowed(int slowValue) |
int |
adjustHits(int damage)
Apply damage or healing to this critter.
|
void |
commitMove() |
BattleHex |
getCurrentHex() |
java.lang.String |
getDescription() |
int |
getHits() |
java.lang.String[] |
getImageNames() |
Legion |
getLegion() |
java.lang.String |
getMarkerId() |
int |
getMaxCount() |
java.lang.String |
getName() |
Player |
getPlayer() |
java.lang.String |
getPluralName() |
int |
getPointValue() |
int |
getPoison() |
int |
getPoisonDamage() |
int |
getPower() |
int |
getSkill() |
int |
getSlowed() |
int |
getSlows() |
BattleHex |
getStartingHex() |
int |
getStrikingPower(Creature target,
int myElevation,
int targetElevation,
HazardTerrain myHexTerrain,
HazardTerrain targetHexTerrain,
HazardHexside myHexside,
HazardHexside targetHexside)
Calculates the Striking Power of this Creature when striking directly at
target under the circumstances in parameters.
|
int |
getStrikingSkill(Creature target,
int myElevation,
int targetElevation,
HazardTerrain myHexTerrain,
HazardTerrain targetHexTerrain,
HazardHexside myHexside,
HazardHexside targetHexside)
Calculates the Striking Skill of this Creature when striking directly at
target under the circumstances in parameters.
|
int |
getTitanPower() |
CreatureType |
getType() |
boolean |
hasMoved() |
boolean |
hasStruck() |
void |
heal() |
boolean |
isDead() |
boolean |
isDemiLord() |
boolean |
isFlier() |
boolean |
isImmortal() |
boolean |
isLord() |
boolean |
isLordOrDemiLord() |
boolean |
isNativeAt(HazardHexside hexside) |
boolean |
isNativeIn(HazardTerrain terrain) |
boolean |
isRangestriker() |
boolean |
isSummonable() |
boolean |
isTitan() |
void |
moveToHex(BattleHex hex) |
void |
setCurrentHex(BattleHex hex) |
void |
setDead(boolean dead) |
void |
setHits(int hits) |
void |
setMoved(boolean moved) |
void |
setPoisonDamage(int damage) |
void |
setSlowed(int slowValue) |
void |
setStartingHex(BattleHex hex) |
void |
setStruck(boolean struck) |
boolean |
useMagicMissile() |
boolean |
wouldDieFrom(int additionalDamage) |
public static final java.util.Comparator<Creature> IMPORTANCE_ORDER
private static final java.util.logging.Logger LOGGER
private final CreatureType type
protected Legion legion
private BattleHex currentHex
private BattleHex startingHex
private int hits
private int poisonDamage
private int slowed
private boolean struck
public Creature(CreatureType type, Legion legion)
public CreatureType getType()
public int getStrikingPower(Creature target, int myElevation, int targetElevation, HazardTerrain myHexTerrain, HazardTerrain targetHexTerrain, HazardHexside myHexside, HazardHexside targetHexside)
target
- The Creature that is struck by the current CreaturemyElevation
- Height of the Hex on which stands the current CreaturetargetElevation
- Height of the hex on which stands the target CreaturemyHexTerrain
- Type of Hazard of the current HextargetHexTerrain
- Type of Hazard of the target hexmyHexside
- Type of hexside hazard between the current hex and the target hextargetHexside
- Type of hexside hazard between the target hex and the current hexpublic int getStrikingSkill(Creature target, int myElevation, int targetElevation, HazardTerrain myHexTerrain, HazardTerrain targetHexTerrain, HazardHexside myHexside, HazardHexside targetHexside)
target
- The Creature that is struck by the current CreaturemyElevation
- Height of the Hex on which stands the current CreaturetargetElevation
- Height of the hex on which stands the target CreaturemyHexTerrain
- Type of Hazard of the current HextargetHexTerrain
- Type of Hazard of the target hexmyHexside
- Type of hexside hazard between the current hex and the target hextargetHexside
- Type of hexside hazard between the target hex and the current hexpublic Legion getLegion()
public Player getPlayer()
public int getPower()
public int getTitanPower()
public java.lang.String getMarkerId()
public java.lang.String getName()
public boolean isTitan()
public java.lang.String getDescription()
public BattleHex getStartingHex()
public void setStartingHex(BattleHex hex)
public BattleHex getCurrentHex()
public void setCurrentHex(BattleHex hex)
public void moveToHex(BattleHex hex)
public void commitMove()
public boolean hasMoved()
public void setMoved(boolean moved)
public boolean isDemiLord()
public boolean isFlier()
public boolean isImmortal()
public boolean isLord()
public boolean isLordOrDemiLord()
public boolean isRangestriker()
public boolean useMagicMissile()
public boolean isSummonable()
public boolean isNativeAt(HazardHexside hexside)
public boolean isNativeIn(HazardTerrain terrain)
public int getPointValue()
public int getSkill()
public int getHits()
public int getPoison()
public int getPoisonDamage()
public int getSlowed()
public int getSlows()
public boolean hasStruck()
public void setHits(int hits)
public void setPoisonDamage(int damage)
public void addPoisonDamage(int damage)
public void setSlowed(int slowValue)
public void addSlowed(int slowValue)
public void setStruck(boolean struck)
public boolean isDead()
public void setDead(boolean dead)
public java.lang.String[] getImageNames()
public java.lang.String getPluralName()
public int getMaxCount()
public void heal()
public boolean wouldDieFrom(int additionalDamage)
public int adjustHits(int damage)