|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jme.app.StandardGameState
A typical game state that initializes a rootNode and camera. The input handler is left to be initialized by derived classes.
| Field Summary | |
protected Camera |
cam
|
protected InputHandler |
input
|
protected Node |
stateNode
|
| Constructor Summary | |
StandardGameState()
Initializes rootNode and camera. |
|
| Method Summary | |
void |
cleanup()
Empty. |
Camera |
getCamera()
Gets the camera of this state. |
Node |
getStateNode()
Gets the state node of this state. |
protected abstract void |
initInput()
Initialize the input handler. |
void |
render(float tpf)
Empty. |
void |
setCamera(Camera cam)
Sets the camera of this state. |
void |
switchTo()
Empty. |
void |
update(float tpf)
Updates the InputHandler. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected InputHandler input
protected Node stateNode
protected Camera cam
| Constructor Detail |
public StandardGameState()
| Method Detail |
public void update(float tpf)
update in interface GameStatetpf - The time since last frame.public void render(float tpf)
render in interface GameStatetpf - The time since last frame.GameState.render(float)public void switchTo()
switchTo in interface GameStateGameState.switchTo()public void cleanup()
cleanup in interface GameStateGameState.cleanup()public Camera getCamera()
getCamera in interface GameStatepublic void setCamera(Camera cam)
setCamera in interface GameStatepublic Node getStateNode()
getStateNode in interface GameStateprotected abstract void initInput()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||