sdr 0.21

net.cscott.sdr.anim
Class Game

java.lang.Object
  extended by com.jme.app.AbstractGame
      extended by com.jme.app.FixedFramerateGame
          extended by net.cscott.sdr.anim.Game

public class Game
extends FixedFramerateGame


Field Summary
 
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
 
Constructor Summary
Game(BlockingQueue<BeatTimer> rendezvousBT, BlockingQueue<LevelMonitor> rendezvousLM, 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).
 
Method Summary
protected  void cleanup()
           
 BeatTimer getBeatTimer()
           
protected  void initGame()
           
protected  void initSystem()
          Creates display, sets up camera, and binds keys.
protected  void quit()
          Calls the quit of BaseGame to clean up the display and then closes the JVM.
protected  void reinit()
           
protected  void render(float _unused)
           
protected  void update(float _unused)
           
 
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
 

Constructor Detail

Game

public Game(BlockingQueue<BeatTimer> rendezvousBT,
            BlockingQueue<LevelMonitor> rendezvousLM,
            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).

Method Detail

initSystem

protected void initSystem()
Creates display, sets up camera, and binds keys.

Specified by:
initSystem in class FixedFramerateGame

initGame

protected void initGame()
Specified by:
initGame in class FixedFramerateGame

update

protected final void update(float _unused)
Specified by:
update in class FixedFramerateGame

render

protected final void render(float _unused)
Specified by:
render in class FixedFramerateGame

getBeatTimer

public BeatTimer getBeatTimer()

cleanup

protected void cleanup()
Specified by:
cleanup in class FixedFramerateGame

quit

protected void quit()
Calls the quit of BaseGame to clean up the display and then closes the JVM.

Overrides:
quit in class FixedFramerateGame

reinit

protected void reinit()
Specified by:
reinit in class FixedFramerateGame

sdr 0.21

Copyright (c) 2006 C. Scott Ananian