net.cscott.sdr.anim
Class MenuState
java.lang.Object
com.jmex.game.state.GameState
com.jmex.game.state.BasicGameState
com.jmex.game.state.CameraGameStateDefaultCamera
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
Fields inherited from class com.jmex.game.state.BasicGameState |
rootNode |
Fields inherited from class com.jmex.game.state.GameState |
active, name, parent |
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 |
MenuState
public MenuState(Game game)
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)
Copyright © 2006-2009 C. Scott Ananian