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 FixedFramerateGame
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Game
public Game(BlockingQueue<BeatTimer> rendezvousBT,
BlockingQueue<LevelMonitor> rendezvousLM,
CyclicBarrier musicSync,
CyclicBarrier sphinxSync)
- You must provide the game with
BlockingQueue
s 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 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
Copyright (c) 2006 C. Scott Ananian