public class UnitInfo
extends java.lang.Object
| Constructor and Description |
|---|
UnitInfo(aic2022.engine.Unit unit) |
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructionTurns()
Returns this unit's remaining construction turns.
|
float |
getCurrentAbilityICooldown()
Returns this unit's current cooldown of its second ability.
|
float |
getCurrentAbilityIICooldown()
Returns this unit's current cooldown of its first ability.
|
float |
getCurrentAttackCooldown()
Returns this unit's current attack cooldown.
|
float |
getCurrentMovementCooldown()
Returns this unit's current movement cooldown.
|
int |
getHealth()
Returns this unit's health.
|
int |
getID()
Returns this unit's identifying number.
|
int |
getLevel()
Returns this unit's level.
|
Location |
getLocation()
Returns this unit's location.
|
Direction |
getOrientation()
Returns this unit's orientation.
|
float |
getStat(UnitStat stat)
Returns the value of the given stat of this unit.
|
Team |
getTeam()
Returns this unit's team.
|
UnitType |
getType()
Returns this unit's type.
|
boolean |
isBeingConstructed()
Returns if this unit is currently being constructed.
|
boolean |
isFullHealth()
Returns if this unit is at full health.
|
public Team getTeam()
public UnitType getType()
public Location getLocation()
public int getHealth()
public float getCurrentMovementCooldown()
public float getCurrentAttackCooldown()
public float getCurrentAbilityIICooldown()
public float getCurrentAbilityICooldown()
public float getStat(UnitStat stat)
stat - Given stat.public int getID()
public boolean isBeingConstructed()
public int getConstructionTurns()
public boolean isFullHealth()
public Direction getOrientation()
public int getLevel()