Package pp.battleship.client.gui
Klasse SeaAppState
java.lang.Object
com.jme3.app.state.AbstractAppState
pp.battleship.client.BattleshipAppState
pp.battleship.client.gui.SeaAppState
- Alle implementierten Schnittstellen:
com.jme3.app.state.AppState
Manages the rendering and visual aspects of the sea and sky in the Battleship game.
This state is responsible for setting up and updating the sea, sky, and lighting
conditions, and controls the camera to create a dynamic view of the game environment.
-
Feldübersicht
Von Klasse geerbte Felder com.jme3.app.state.AbstractAppState
initialized -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected voidDisables the sea and sky state, removing visual elements from the scene and unregistering listeners.protected voidEnables the sea and sky state, setting up the scene and registering any necessary listeners.voidinitialize(com.jme3.app.state.AppStateManager stateManager, com.jme3.app.Application application) Initializes the state by setting up the sky, lights, and other visual components.voidupdate(float tpf) Updates the state each frame, moving the camera to simulate it circling around the map.Von Klasse geerbte Methoden pp.battleship.client.BattleshipAppState
getApp, getGameLogic, setEnabled, showsDialogVon Klasse geerbte Methoden com.jme3.app.state.AbstractAppState
cleanup, getId, isEnabled, isInitialized, postRender, render, setId, stateAttached, stateDetached
-
Konstruktordetails
-
SeaAppState
public SeaAppState()
-
-
Methodendetails
-
initialize
public void initialize(com.jme3.app.state.AppStateManager stateManager, com.jme3.app.Application application) Initializes the state by setting up the sky, lights, and other visual components. This method is called when the state is first attached to the state manager.- Angegeben von:
initializein Schnittstellecom.jme3.app.state.AppState- Setzt außer Kraft:
initializein KlasseBattleshipAppState- Parameter:
stateManager- the state managerapplication- the application
-
enableState
protected void enableState()Enables the sea and sky state, setting up the scene and registering any necessary listeners. This method is called when the state is set to active.- Angegeben von:
enableStatein KlasseBattleshipAppState
-
disableState
protected void disableState()Disables the sea and sky state, removing visual elements from the scene and unregistering listeners. This method is called when the state is set to inactive.- Angegeben von:
disableStatein KlasseBattleshipAppState
-
update
public void update(float tpf) Updates the state each frame, moving the camera to simulate it circling around the map.- Angegeben von:
updatein Schnittstellecom.jme3.app.state.AppState- Setzt außer Kraft:
updatein Klassecom.jme3.app.state.AbstractAppState- Parameter:
tpf- the time per frame (seconds)
-