net.cscott.sdr.anim
Class VenueState
java.lang.Object
com.jmex.game.state.GameState
com.jmex.game.state.BasicGameState
com.jmex.game.state.CameraGameStateDefaultCamera
com.jmex.game.state.CameraGameState
net.cscott.sdr.anim.VenueState
public class VenueState
- extends com.jmex.game.state.CameraGameState
The VenueState
is in charge of showing the background venue
and controlling the camera. (Maybe separate the camera into a separate
game state?). Eventually we may be able to instantiate multiple
VenueState
s and cross-fade between them to change venues.
VenueState
does not process any keyboard or mouse input.
- Version:
- $Id: VenueState.java,v 1.6 2007-03-07 19:17:20 cananian Exp $
- Author:
- C. Scott Ananian
Fields inherited from class com.jmex.game.state.CameraGameState |
cam |
Fields inherited from class com.jmex.game.state.BasicGameState |
rootNode |
Fields inherited from class com.jmex.game.state.GameState |
active, name, parent |
Methods inherited from class com.jmex.game.state.CameraGameState |
getCamera, setCamera |
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 |
timer
protected com.jme.util.Timer timer
- High resolution timer for tempo-independent animation.
beatTimer
protected BeatTimer beatTimer
- Music-synced timer.
settings
protected final Settings settings
- Game settings.
danceFloor
protected final DanceFloor danceFloor
- Communication with the choreography engine.
VenueState
public VenueState(Settings settings,
BeatTimer beatTimer,
DanceFloor danceFloor)
initInput
public void initInput()
onCamera
public void onCamera()
stateUpdate
public void stateUpdate(float tpf)
- Overrides:
stateUpdate
in class com.jmex.game.state.CameraGameStateDefaultCamera
onActivate
protected void onActivate()
- Overrides:
onActivate
in class com.jmex.game.state.CameraGameState
initCamera
protected void initCamera()
- Overrides:
initCamera
in class com.jmex.game.state.CameraGameState
Copyright © 2006-2009 C. Scott Ananian