com.jmex.game.state
Class DebugGameState

java.lang.Object
  extended by com.jmex.game.state.GameState
      extended by com.jmex.game.state.BasicGameState
          extended by com.jmex.game.state.TextGameState
              extended by 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

Field Summary
protected  InputHandler input
           
protected  LightState lightState
           
protected  boolean pause
           
protected  boolean showBounds
           
protected  boolean showDepth
           
protected  boolean showNormals
           
protected  boolean statisticsCreated
           
protected  WireframeState wireState
           
 
Fields inherited from class com.jmex.game.state.TextGameState
textNode, textObject
 
Fields inherited from class com.jmex.game.state.BasicGameState
rootNode
 
Fields inherited from class com.jmex.game.state.GameState
active, name, parent
 
Constructor Summary
DebugGameState()
           
DebugGameState(boolean handleInput)
           
 
Method Summary
protected  void cameraParallel()
           
protected  void cameraPerspective()
           
 void cleanup()
          Empty.
 LightState getLightState()
           
 void render(float tpf)
          Draws the rootNode.
 void update(float tpf)
          Updates the rootNode.
 
Methods inherited from class com.jmex.game.state.TextGameState
getText, setText
 
Methods inherited from class com.jmex.game.state.BasicGameState
getRootNode
 
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

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
Constructor Detail

DebugGameState

public DebugGameState()

DebugGameState

public DebugGameState(boolean handleInput)
Method Detail

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()