Class StatsPanelController

java.lang.Object
games.stendhal.client.gui.stats.StatsPanelController

public final class StatsPanelController extends Object
Object for listening for various user state changes that should be show.
  • Method Details

    • get

      public static StatsPanelController get()
      Get the StatsPanelController instance.
      Returns:
      the StatsPanelController instance
    • getComponent

      public games.stendhal.client.gui.stats.StatsPanel getComponent()
      Get the StatsPanel component this controller is keeping updated.
      Returns:
      StatsPanel
    • registerListeners

      public void registerListeners(PropertyChangeSupport pcs)
      Add listeners for all the properties this object follows.
      Parameters:
      pcs - property change support of the user
    • toggleHPBar

      public void toggleHPBar(boolean show)
      Show/Hide HP bar.
      Parameters:
      show - If true, HP bar will be visible.