Package pp.battleship.client
Klasse BattleshipAppState
java.lang.Object
com.jme3.app.state.AbstractAppState
pp.battleship.client.BattleshipAppState
- Alle implementierten Schnittstellen:
com.jme3.app.state.AppState
- Bekannte direkte Unterklassen:
BattleAppState,EditorAppState,SeaAppState
public abstract class BattleshipAppState
extends com.jme3.app.state.AbstractAppState
Abstract class representing a state in the Battleship game.
Extends the AbstractAppState from jMonkeyEngine to manage state behavior.
-
Feldübersicht
Von Klasse geerbte Felder com.jme3.app.state.AbstractAppState
initialized -
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotectedCreates a new BattleshipAppState that is initially disabled. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected abstract voidThis method is called when the state is disabled.protected abstract voidThis method is called when the state is enabled.getApp()Returns the BattleshipApp instance associated with this BattleshipAppState.pp.battleship.game.client.ClientGameLogicReturns the client game logic handler.voidinitialize(com.jme3.app.state.AppStateManager stateManager, com.jme3.app.Application application) Initializes the state manager and application.voidsetEnabled(boolean enabled) Sets the enabled state of the BattleshipAppState.booleanChecks if any dialog is currently displayed.Von Klasse geerbte Methoden com.jme3.app.state.AbstractAppState
cleanup, getId, isEnabled, isInitialized, postRender, render, setId, stateAttached, stateDetached, update
-
Konstruktordetails
-
BattleshipAppState
protected BattleshipAppState()Creates a new BattleshipAppState that is initially disabled.- Siehe auch:
-
-
Methodendetails
-
initialize
public void initialize(com.jme3.app.state.AppStateManager stateManager, com.jme3.app.Application application) Initializes the state manager and application.- Angegeben von:
initializein Schnittstellecom.jme3.app.state.AppState- Setzt außer Kraft:
initializein Klassecom.jme3.app.state.AbstractAppState- Parameter:
stateManager- The state managerapplication- The application instance
-
getApp
Returns the BattleshipApp instance associated with this BattleshipAppState.- Gibt zurück:
- The BattleshipApp instance.
-
getGameLogic
public pp.battleship.game.client.ClientGameLogic getGameLogic()Returns the client game logic handler.- Gibt zurück:
- the client game logic handler
-
showsDialog
public boolean showsDialog()Checks if any dialog is currently displayed.- Gibt zurück:
- true if any dialog is currently shown, false otherwise
-
setEnabled
public void setEnabled(boolean enabled) Sets the enabled state of the BattleshipAppState. If the new state is the same as the current state, the method returns.- Angegeben von:
setEnabledin Schnittstellecom.jme3.app.state.AppState- Setzt außer Kraft:
setEnabledin Klassecom.jme3.app.state.AbstractAppState- Parameter:
enabled- The new enabled state.
-
enableState
protected abstract void enableState()This method is called when the state is enabled. It is meant to be overridden by subclasses to perform specific actions when the state is enabled. -
disableState
protected abstract void disableState()This method is called when the state is disabled. It is meant to be overridden by subclasses to perform specific actions when the state is disabled.
-