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 StatsPanelControllerget()Get theStatsPanelControllerinstance.games.stendhal.client.gui.stats.StatsPanelGet theStatsPanelcomponent this controller is keeping updated.voidAdd listeners for all the properties this object follows.voidtoggleHPBar(boolean show) Show/Hide HP bar.
-
Method Details
-
get
Get theStatsPanelControllerinstance.- Returns:
- the StatsPanelController instance
-
getComponent
public games.stendhal.client.gui.stats.StatsPanel getComponent()Get theStatsPanelcomponent 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.
-