Package games.stendhal.client.gui.stats
Class StatsPanelController
java.lang.Object
games.stendhal.client.gui.stats.StatsPanelController
Object for listening for various user state changes that should
be show.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StatsPanelController
get()
Get theStatsPanelController
instance.games.stendhal.client.gui.stats.StatsPanel
Get theStatsPanel
component this controller is keeping updated.void
Add listeners for all the properties this object follows.void
toggleHPBar(boolean show)
Show/Hide HP bar.
-
Method Details
-
get
Get theStatsPanelController
instance.- Returns:
- the StatsPanelController instance
-
getComponent
public games.stendhal.client.gui.stats.StatsPanel getComponent()Get theStatsPanel
component this controller is keeping updated.- Returns:
- StatsPanel
-
registerListeners
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
- Iftrue
, HP bar will be visible.
-