Package dev.twilite.game.facade
Class Hud
java.lang.Object
dev.twilite.game.facade.Hud
Helpers for the local player hud.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic inthealth()Returns the current health of the local playerstatic intReturns the current health of the local player as a percentagestatic intReturns the max health of the local playerstatic intReturns the Wilderness level at the local player, or0outside the Wilderness.static intwildernessLevel(Coord coord) Returns the Wilderness level at a coordinate, or0outside the Wilderness.static intwildernessLevel(Unit unit) Returns the Wilderness level at a unit's coordinate, or0outside the Wilderness.
-
Constructor Details
-
Hud
public Hud()
-
-
Method Details
-
health
public static int health()Returns the current health of the local player -
maxHealth
public static int maxHealth()Returns the max health of the local player -
healthPercent
public static int healthPercent()Returns the current health of the local player as a percentage -
wildernessLevel
public static int wildernessLevel()Returns the Wilderness level at the local player, or0outside the Wilderness. -
wildernessLevel
Returns the Wilderness level at a unit's coordinate, or0outside the Wilderness. -
wildernessLevel
Returns the Wilderness level at a coordinate, or0outside the Wilderness.
-