com.jmex.awt.swingui
Class JMEDesktopState

java.lang.Object
  extended by com.jmex.game.state.GameState
      extended by com.jmex.game.state.BasicGameState
          extended by com.jmex.awt.swingui.JMEDesktopState

public class JMEDesktopState
extends BasicGameState

Author:
Matthew D. Hicks

Field Summary
 
Fields inherited from class com.jmex.game.state.BasicGameState
rootNode
 
Fields inherited from class com.jmex.game.state.GameState
active, name, parent
 
Constructor Summary
JMEDesktopState()
           
JMEDesktopState(boolean variableDesktopSize)
           
JMEDesktopState(int width, int height)
           
 
Method Summary
protected  void buildUI()
           
 void cleanup()
          Empty.
 JMEDesktop getDesktop()
           
 Node getGUINode()
           
 InputHandler getInputHandler()
           
 void render(float tpf)
          Draws the rootNode.
 void update(float tpf)
          Updates the rootNode.
 
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
 

Constructor Detail

JMEDesktopState

public JMEDesktopState()

JMEDesktopState

public JMEDesktopState(int width,
                       int height)

JMEDesktopState

public JMEDesktopState(boolean variableDesktopSize)
Method Detail

buildUI

protected void buildUI()

update

public void update(float tpf)
Description copied from class: BasicGameState
Updates the rootNode.

Overrides:
update in class BasicGameState
Parameters:
tpf - The elapsed time since last frame.
See Also:
GameState.update(float)

render

public void render(float tpf)
Description copied from class: BasicGameState
Draws the rootNode.

Overrides:
render in class BasicGameState
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 BasicGameState
See Also:
GameState.cleanup()

getGUINode

public Node getGUINode()

getDesktop

public JMEDesktop getDesktop()

getInputHandler

public InputHandler getInputHandler()