net.cscott.sdr.anim
Class Game
java.lang.Object
com.jme.app.AbstractGame
com.jme.app.FixedFramerateGame
net.cscott.sdr.anim.Game
public class Game
- extends com.jme.app.FixedFramerateGame
Base game class.
| Fields inherited from class com.jme.app.AbstractGame |
ALWAYS_SHOW_PROPS_DIALOG, display, finished, FIRSTRUN_OR_NOCONFIGFILE_SHOW_PROPS_DIALOG, NEVER_SHOW_PROPS_DIALOG, properties |
| Methods inherited from class com.jme.app.FixedFramerateGame |
getFramesPerSecond, setFrameRate, start |
| Methods inherited from class com.jme.app.AbstractGame |
assertDisplayCreated, finish, getAttributes, getVersion, setDialogBehaviour, setDialogBehaviour, setDialogBehaviour |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
settings
public final GameSettings settings
- Various user-adjustable settings.
mode
public final Mode mode
- Current game mode.
Game
public Game(CommandInput input,
HUD hud,
DanceFloor danceFloor,
Mode mode,
BlockingQueue<BeatTimer> rendezvousBT,
BlockingQueue<RecogThread.Control> rendezvousRT,
CyclicBarrier musicSync,
CyclicBarrier sphinxSync)
- You must provide the game with
BlockingQueues from which we can
get a BeatTimer (presumably from the music player thread) and a
LevelMonitor (presumably from the speech-recognition thread).
initSystem
protected void initSystem()
- Creates display, sets up camera, and binds keys.
- Specified by:
initSystem in class com.jme.app.FixedFramerateGame
getName
public final String getName()
initGame
protected void initGame()
- Specified by:
initGame in class com.jme.app.FixedFramerateGame
update
protected final void update(float _unused)
- Specified by:
update in class com.jme.app.FixedFramerateGame
render
protected final void render(float _unused)
- Specified by:
render in class com.jme.app.FixedFramerateGame
getBeatTimer
public BeatTimer getBeatTimer()
cleanup
protected void cleanup()
- Specified by:
cleanup in class com.jme.app.FixedFramerateGame
quit
protected void quit()
- Calls the quit of BaseGame to clean up the display and then
closes the JVM.
- Overrides:
quit in class com.jme.app.FixedFramerateGame
reinit
protected void reinit()
- Specified by:
reinit in class com.jme.app.FixedFramerateGame
Copyright © 2006-2009 C. Scott Ananian