|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jmex.game.state.GameState
com.jmex.game.state.GameStateNode<G>
com.jmex.game.state.BasicGameStateNode<G>
public class BasicGameStateNode<G extends GameState>
BasicGameStateNode
this is identical to BasicGameState except it allows
you to add additional GameStates as children beneath it.
Field Summary | |
---|---|
protected Node |
rootNode
The root of this GameStates scenegraph. |
Fields inherited from class com.jmex.game.state.GameStateNode |
---|
children |
Fields inherited from class com.jmex.game.state.GameState |
---|
active, name, parent |
Constructor Summary | |
---|---|
BasicGameStateNode(java.lang.String name)
Creates a new BasicGameStateNode with a given name. |
Method Summary | |
---|---|
void |
cleanup()
Empty. |
Node |
getRootNode()
|
void |
render(float tpf)
Draws the rootNode. |
void |
update(float tpf)
Updates the rootNode. |
Methods inherited from class com.jmex.game.state.GameStateNode |
---|
activateAllChildren, activateChildNamed, attachChild, deactivateAllChildren, deactivateChildNamed, detachAllChildren, detachChild, detachChild, detachChild, getChild, getChild, getChildren, getQuantity, hasChild |
Methods inherited from class com.jmex.game.state.GameState |
---|
getName, getParent, isActive, setActive, setName, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Node rootNode
Constructor Detail |
---|
public BasicGameStateNode(java.lang.String name)
name
- The name of this GameState.Method Detail |
---|
public void update(float tpf)
update
in class GameStateNode<G extends GameState>
tpf
- The elapsed time since last frame.GameState.update(float)
public void render(float tpf)
render
in class GameStateNode<G extends GameState>
tpf
- The elapsed time since last frame.GameState.render(float)
public void cleanup()
cleanup
in class GameStateNode<G extends GameState>
GameState.cleanup()
public Node getRootNode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |