Interface HealthBar


public interface HealthBar
Represents a health bar displayed above an actor in the game.

Health bars provide visual feedback about an actor's current health status. They are typically shown when an actor takes damage and remain visible for a short duration. Each health bar has a configuration that defines its appearance and a collection of updates that track health changes.

See Also:
  • Method Details

    • getHealthBarConfig

      HealthBarConfig getHealthBarConfig()
      Gets the configuration for this health bar.

      The configuration contains settings that define the health bar's appearance, such as its visual style, scale, and other display properties.

      Returns:
      the HealthBarConfig containing the health bar's configuration settings
    • getUpdates

      IterableNodeDeque getUpdates()
      Gets the collection of updates for this health bar.

      Updates contain information about health changes over time. Each update represents a change in the health ratio displayed by this health bar.

      Returns:
      an IterableNodeDeque containing the HealthBarUpdate objects for this health bar