sdr 0.7

net.cscott.sdr.anim
Class MenuState

java.lang.Object
  extended by com.jmex.game.state.GameState
      extended by com.jmex.game.state.BasicGameState
          extended by com.jmex.game.state.CameraGameStateDefaultCamera
              extended by net.cscott.sdr.anim.MenuState

public class MenuState
extends com.jmex.game.state.CameraGameStateDefaultCamera

The MenuState displays a cursor on the screen and an appropriate menu of options. It uses ORTHO mode and does not reset the camera, so some other camera-controlling state should also be active for background visuals.

Version:
$Id: MenuState.java,v 1.13 2007-03-07 19:56:01 cananian Exp $
Author:
C. Scott Ananian

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
MenuState(Game game)
           
 
Method Summary
protected  void initInput(Game game)
          Inits the input handler we will use for navigation of the menu.
 void onActivate()
           
protected  void stateUpdate(float tpf)
          Updates input and button.
 
Methods inherited from class com.jmex.game.state.CameraGameStateDefaultCamera
getRootNode, initZBuffer, onDeactivate, render, setActive, stateRender, update
 
Methods inherited from class com.jmex.game.state.BasicGameState
cleanup
 
Methods inherited from class com.jmex.game.state.GameState
getName, getParent, isActive, setName, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MenuState

public MenuState(Game game)
Method Detail

onActivate

public void onActivate()
Specified by:
onActivate in class com.jmex.game.state.CameraGameStateDefaultCamera
See Also:
CameraGameState.onActivate()

initInput

protected void initInput(Game game)
Inits the input handler we will use for navigation of the menu.


stateUpdate

protected void stateUpdate(float tpf)
Updates input and button.

Overrides:
stateUpdate in class com.jmex.game.state.CameraGameStateDefaultCamera
Parameters:
tpf - The time since last frame.
See Also:
GameState.update(float)

sdr 0.7

Copyright © 2006-2009 C. Scott Ananian