Class Hud

java.lang.Object
dev.twilite.game.facade.Hud

public class Hud extends Object
Helpers for the local player hud.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Hud()
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    Returns the current health of the local player
    static int
    Returns the current health of the local player as a percentage
    static int
    Returns the max health of the local player
    static int
    Returns the Wilderness level at the local player, or 0 outside the Wilderness.
    static int
    Returns the Wilderness level at a coordinate, or 0 outside the Wilderness.
    static int
    Returns the Wilderness level at a unit's coordinate, or 0 outside the Wilderness.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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, or 0 outside the Wilderness.
    • wildernessLevel

      public static int wildernessLevel(Unit unit)
      Returns the Wilderness level at a unit's coordinate, or 0 outside the Wilderness.
    • wildernessLevel

      public static int wildernessLevel(Coord coord)
      Returns the Wilderness level at a coordinate, or 0 outside the Wilderness.