Package pp.battleship.client.gui
Klasse EditorAppState
java.lang.Object
com.jme3.app.state.AbstractAppState
pp.battleship.client.BattleshipAppState
pp.battleship.client.gui.EditorAppState
- Alle implementierten Schnittstellen:
com.jme3.app.state.AppState
EditorState manages the editor mode in the Battleship game,
allowing players to place and rotate ships.
-
Feldübersicht
Von Klasse geerbte Felder com.jme3.app.state.AbstractAppState
initialized -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected voidDisables the editor state by detaching nodes and removing listeners.protected voidEnables the editor state by attaching necessary nodes and listeners.voidupdate(float tpf) Updates the editor state, handling cursor movement and enabling buttons.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
-
Konstruktordetails
-
EditorAppState
public EditorAppState()
-
-
Methodendetails
-
enableState
protected void enableState()Enables the editor state by attaching necessary nodes and listeners.- Angegeben von:
enableStatein KlasseBattleshipAppState
-
disableState
protected void disableState()Disables the editor state by detaching nodes and removing listeners.- Angegeben von:
disableStatein KlasseBattleshipAppState
-
update
public void update(float tpf) Updates the editor state, handling cursor movement and enabling buttons.- Angegeben von:
updatein Schnittstellecom.jme3.app.state.AppState- Setzt außer Kraft:
updatein Klassecom.jme3.app.state.AbstractAppState- Parameter:
tpf- Time per frame
-