public class UnitStatCalculator
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
int |
airWeaponDamageCooldown(AirAttacker unit)
Retrieves the air weapon cooldown of a unit.
|
int |
armor(UnitType unitType)
Calculates the armor that a given unit type will have, including upgrades.
|
int |
damage(WeaponType weaponType)
Calculates the damage that a given weapon type can deal, including upgrades.
|
int |
groundWeaponDamageCooldown(GroundAttacker unit)
Retrieves the ground weapon cooldown of a unit.
|
int |
groundWeaponDamageMaxCooldown(UnitType unitType)
Retrieves the weapon max cooldown of a unit type, taking the player's attack speed upgrades
into consideration.
|
int |
maxEnergy(UnitType unitType)
Retrieves the maximum amount of energy that a unit type will have, taking the player's energy
upgrades into consideration.
|
int |
sightRange(UnitType unitType)
Retrieves the sight range of a unit type, taking the player's sight range upgrades into
consideration.
|
double |
topSpeed(UnitType unitType)
Retrieves the top speed of a unit type, taking the player's speed upgrades into consideration.
|
int |
weaponMaxRange(WeaponType weaponType)
Retrieves the maximum weapon range of a weapon type, taking the player's weapon upgrades into
consideration.
|
public int maxEnergy(UnitType unitType)
public double topSpeed(UnitType unitType)
public int weaponMaxRange(WeaponType weaponType)
public int sightRange(UnitType unitType)
public int groundWeaponDamageMaxCooldown(UnitType unitType)
public int groundWeaponDamageCooldown(GroundAttacker unit)
public int airWeaponDamageCooldown(AirAttacker unit)
public int armor(UnitType unitType)
public int damage(WeaponType weaponType)