sdr 0.7

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 com.jme.app.FixedFramerateGame

Base game class.


Field Summary
 Mode mode
          Current game mode.
 GameSettings settings
          Various user-adjustable settings.
 
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(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).
 
Method Summary
protected  void cleanup()
           
 BeatTimer getBeatTimer()
           
 String getName()
           
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
 

Field Detail

settings

public final GameSettings settings
Various user-adjustable settings.


mode

public final Mode mode
Current game mode.

Constructor Detail

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

Method Detail

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

sdr 0.7

Copyright © 2006-2009 C. Scott Ananian