Package pp.battleship.client.gui
Klasse BattleAppState
java.lang.Object
com.jme3.app.state.AbstractAppState
pp.battleship.client.BattleshipAppState
pp.battleship.client.gui.BattleAppState
- Alle implementierten Schnittstellen:
com.jme3.app.state.AppState
Represents the state responsible for managing the battle interface within the Battleship game.
This state handles the display and interaction of the battle map, including the opponent's map.
It manages GUI components, input events, and the layout of the interface when this state is enabled.
-
Feldübersicht
Von Klasse geerbte Felder com.jme3.app.state.AbstractAppState
initialized -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected voidDisables the battle state by removing GUI components and unregistering input listeners.protected voidEnables the battle state by initializing, laying out, and adding GUI components.Von Klasse geerbte Methoden pp.battleship.client.BattleshipAppState
getApp, getGameLogic, initialize, setEnabled, showsDialogVon Klasse geerbte Methoden com.jme3.app.state.AbstractAppState
cleanup, getId, isEnabled, isInitialized, postRender, render, setId, stateAttached, stateDetached, update
-
Konstruktordetails
-
BattleAppState
public BattleAppState()
-
-
Methodendetails
-
enableState
protected void enableState()Enables the battle state by initializing, laying out, and adding GUI components. Attaches the components to the GUI node and registers input listeners.- Angegeben von:
enableStatein KlasseBattleshipAppState
-
disableState
protected void disableState()Disables the battle state by removing GUI components and unregistering input listeners. Also handles cleanup of resources, such as the opponent's map view.- Angegeben von:
disableStatein KlasseBattleshipAppState
-