Class HPIndicator

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public class HPIndicator extends StatusDisplayBar
A bar indicator component for HP.
See Also:
Serialized Form
  • Constructor Details

    • HPIndicator

      public HPIndicator()
  • Method Details

    • setRatio

      public void setRatio(float ratio)
      Set the ratio of HP/Maximum HP.
      Parameters:
      ratio - HP ratio.
    • setHP

      public void setHP(int maxhp, int hp)
      Parameters:
      maxhp -
      hp -