| Enum Constant and Description |
|---|
AXEMAN
Axeman unit.
|
BARRACKS
Barracks structure.
|
BASE
Base structure.
|
DEER
Deer unit (neutral).
|
EXPLORER
Explorer unit.
|
FARM
Farm structure.
|
QUARRY
Quarry structure.
|
SAWMILL
Sawmill structure.
|
SETTLEMENT
Settlement structure.
|
SPEARMAN
Spearman unit.
|
TRAPPER
Trapper unit.
|
WOLF
Wolf unit.
|
WORKER
Worker unit.
|
| Modifier and Type | Field and Description |
|---|---|
int |
attack
Attack power of this unit type.
|
float |
attackCooldown
Attack cooldown of this unit type.
|
int |
attackRange
Attack range of this unit type (in square units).
|
int |
detectionLevel
Detection level of this unit type.
|
int |
foodCost
Food required to build this unit.
|
int |
luminousIntensity
Intrinsic luminous intensity of this unit type.
|
int |
maxHealth
Maximum health points of this unit type.
|
int |
minAttackRange
Minimum attack range of this unit type (in square units).
|
float |
movementCooldown
Movement cooldown of this unit type.
|
int |
movementRange
Movement range of this unit type.
|
int |
stoneCost
Stone required to build this unit.
|
int |
torchThrowRange
Torch throw range of this unit type.
|
int |
visionRange
Vision range of this unit type.
|
int |
woodCost
Wood required to build this unit.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canAttack()
Returns if this unit type can attack.
|
boolean |
canMove()
Returns if this unit type can move.
|
int |
getAttack()
Returns the attack power of this unit type.
|
float |
getAttackCooldown()
RReturns the attack cooldown of this unit type.
|
int |
getAttackRange()
Returns the attack range of this unit type.
|
int |
getDetectionLevel()
Returns the detection level of this unit type.
|
int |
getFoodCost()
Returns the required food to build this unit or structure.
|
int |
getLuminousIntensity()
Returns the luminous intensity of this unit type.
|
int |
getMaxHealth()
Returns the maximum health points of this unit type.
|
int |
getMinAttackRange()
Returns the minimum attack range of this unit type.
|
float |
getMovementCooldown()
Returns the movement cooldown of this unit type.
|
int |
getMovementRange()
Returns the movement range of this unit type.
|
int |
getStoneCost()
Returns the required stone to build this unit or structure.
|
int |
getTorchThrowRange()
Returns the torch throw range of this unit type.
|
int |
getTotalCost()
Returns the total required resources to build this unit or structure.
|
int |
getVisionRange()
Returns the vision range of this unit type (in square units).
|
int |
getWoodCost()
Returns the required wood to build this unit or structure.
|
boolean |
isStructure()
Returns if this unit type is a structure.
|
static UnitType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static UnitType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnitType BASE
public static final UnitType WORKER
public static final UnitType SETTLEMENT
public static final UnitType BARRACKS
public static final UnitType FARM
public static final UnitType SAWMILL
public static final UnitType QUARRY
public static final UnitType EXPLORER
public static final UnitType TRAPPER
public static final UnitType AXEMAN
public static final UnitType SPEARMAN
public static final UnitType WOLF
public static final UnitType DEER
public final int maxHealth
public final int woodCost
public final int foodCost
public final int stoneCost
public final int attackRange
public final int minAttackRange
public final int attack
public final float attackCooldown
public final int visionRange
public final int movementRange
public final float movementCooldown
public final int detectionLevel
public final int luminousIntensity
public final int torchThrowRange
public static UnitType[] values()
for (UnitType c : UnitType.values()) System.out.println(c);
public static UnitType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getAttack()
public float getAttackCooldown()
public int getAttackRange()
public int getMinAttackRange()
public int getMaxHealth()
public int getWoodCost()
public int getFoodCost()
public int getStoneCost()
public int getTotalCost()
public int getVisionRange()
public int getMovementRange()
public float getMovementCooldown()
public int getDetectionLevel()
public int getLuminousIntensity()
public int getTorchThrowRange()
public boolean canMove()
public boolean canAttack()
public boolean isStructure()