sdr 0.7

net.cscott.sdr.anim
Class VenueState

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 com.jmex.game.state.CameraGameState
                  extended by 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 VenueStates 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

Field Summary
protected  BeatTimer beatTimer
          Music-synced timer.
protected  DanceFloor danceFloor
          Communication with the choreography engine.
protected  Settings settings
          Game settings.
protected  com.jme.util.Timer timer
          High resolution timer for tempo-independent animation.
 
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
 
Constructor Summary
VenueState(Settings settings, BeatTimer beatTimer, DanceFloor danceFloor)
           
 
Method Summary
protected  void initCamera()
           
 void initInput()
           
protected  void onActivate()
           
 void onCamera()
           
 void stateUpdate(float tpf)
           
 
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
 

Field Detail

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.

Constructor Detail

VenueState

public VenueState(Settings settings,
                  BeatTimer beatTimer,
                  DanceFloor danceFloor)
Method Detail

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

sdr 0.7

Copyright © 2006-2009 C. Scott Ananian