com.jme.app
Interface GameState

All Known Implementing Classes:
StandardGameState

public interface GameState

The basic frame of a GameState.

Author:
Per Thulin

Method Summary
 void cleanup()
          Gets called on removal of this game state.
 Camera getCamera()
          Gets the camera of this state.
 Node getStateNode()
          Gets the state node of this state.
 void render(float tpf)
          Gets called every frame by GameStateManager.
 void setCamera(Camera cam)
          Sets the camera of this state.
 void switchTo()
          Gets called by GameStateManager when switched to.
 void update(float tpf)
          Gets called every frame by GameStateManager.
 

Method Detail

update

public void update(float tpf)
Gets called every frame by GameStateManager.

Parameters:
tpf - The time since last frame.

render

public void render(float tpf)
Gets called every frame by GameStateManager.

Parameters:
tpf - The time since last frame.

switchTo

public void switchTo()
Gets called by GameStateManager when switched to.


cleanup

public void cleanup()
Gets called on removal of this game state.


getCamera

public Camera getCamera()
Gets the camera of this state.

Returns:
The camera of this state.

setCamera

public void setCamera(Camera cam)
Sets the camera of this state.


getStateNode

public Node getStateNode()
Gets the state node of this state.

Returns:
The state node of this state.