com.jmex.game.state
Class DebugGameState
java.lang.Object
com.jmex.game.state.GameState
com.jmex.game.state.BasicGameState
com.jmex.game.state.TextGameState
com.jmex.game.state.DebugGameState
public class DebugGameState
- extends TextGameState
TestGameState
provides an extremely basic gamestate with
various testing features pre-implemented. The preferred way to utilize this
is to instantiate your game, instantiate the TestGameState, register it with
GameStateManager
, and then use the getRootNode() method on
TestGameState to get the root node, or simply extend this class to create
your own test scenario.
- Author:
- Matthew D. Hicks
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
input
protected InputHandler input
wireState
protected WireframeState wireState
lightState
protected LightState lightState
pause
protected boolean pause
showBounds
protected boolean showBounds
showDepth
protected boolean showDepth
showNormals
protected boolean showNormals
statisticsCreated
protected boolean statisticsCreated
DebugGameState
public DebugGameState()
DebugGameState
public DebugGameState(boolean handleInput)
getLightState
public LightState getLightState()
update
public void update(float tpf)
- Description copied from class:
BasicGameState
- Updates the rootNode.
- Overrides:
update
in class TextGameState
- Parameters:
tpf
- The elapsed time since last frame.- See Also:
GameState.update(float)
cameraPerspective
protected void cameraPerspective()
cameraParallel
protected void cameraParallel()
render
public void render(float tpf)
- Description copied from class:
BasicGameState
- Draws the rootNode.
- Overrides:
render
in class TextGameState
- Parameters:
tpf
- The elapsed time since last frame.- See Also:
GameState.render(float)
cleanup
public void cleanup()
- Description copied from class:
BasicGameState
- Empty.
- Overrides:
cleanup
in class TextGameState
- See Also:
GameState.cleanup()