public class UnitInfo
extends java.lang.Object
| Constructor and Description |
|---|
UnitInfo(aic2020.engine.Unit unit) |
| Modifier and Type | Method and Description |
|---|---|
float |
getAttackCooldown()
Returns this unit's current attack cooldown.
|
Location |
getAttackLocation()
Returns the location attacked by this unit during it's last turn.
|
int |
getConstructionTurns()
Returns this unit's remaining construction turns.
|
int |
getHealth()
Returns this unit's current health.
|
int |
getID()
Returns this unit's ID.
|
int |
getLevel()
Returns this unit's level.
|
Location |
getLocation()
Returns this unit's current location.
|
float |
getMovementCooldown()
Returns this unit's current movement cooldown.
|
Team |
getTeam()
Returns this unit's team.
|
UnitType |
getType()
Returns this unit's type.
|
boolean |
isBeingConstructed()
Returns if this unit is still being constructed.
|
boolean |
isInfected()
Returns if this unit is infected or not.
|
public Team getTeam()
public UnitType getType()
public Location getLocation()
public int getHealth()
public float getMovementCooldown()
public float getAttackCooldown()
public int getID()
public boolean isBeingConstructed()
public int getConstructionTurns()
public boolean isInfected()
public Location getAttackLocation()
public int getLevel()