sdr 0.21

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  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(BeatTimer beatTimer)
           
 
Method Summary
protected  void initCamera()
           
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 Timer timer
High resolution timer for tempo-independent animation.


beatTimer

protected BeatTimer beatTimer
Music-synced timer.

Constructor Detail

VenueState

public VenueState(BeatTimer beatTimer)
Method Detail

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.21

Copyright (c) 2006 C. Scott Ananian