sdr 0.7

net.cscott.sdr.anim
Class SdrBaseGame

java.lang.Object
  extended by com.jme.app.AbstractGame
      extended by com.jme.app.FixedFramerateGame
          extended by net.cscott.sdr.anim.SdrBaseGame
Direct Known Subclasses:
JmeDemo, SdrGame

Deprecated. Replaced by Game.

public abstract class SdrBaseGame
extends com.jme.app.FixedFramerateGame

SdrBaseGame is a fixed-framerate base game class. It sets up the BaseGame in a manner similar to SimpleGame, but defers the really application-specific stuff to subclasses.

Version:
$Id: SdrBaseGame.java,v 1.4 2006-10-25 17:46:46 cananian Exp $
Author:
C. Scott Ananian

Field Summary
protected  com.jme.renderer.Camera cam
          Deprecated. Our camera.
protected  com.jme.input.InputHandler input
          Deprecated. Handles mouse/keyboard.
protected  com.jme.scene.state.LightState lightState
          Deprecated. A lightstate to turn on and off for the rootNode.
protected  com.jme.scene.Node rootNode
          Deprecated. Root node of our scene graph.
protected  boolean showBounds
          Deprecated. True if the renderer should display bounds.
protected  boolean showDepth
          Deprecated. True if the renderer should display the depth buffer.
protected  boolean showNormals
          Deprecated. True if the rnederer should display normals.
protected  com.jme.util.Timer timer
          Deprecated. High resolution timer for tempo-independent animation.
protected  com.jme.scene.state.WireframeState wireState
          Deprecated. A wirestate to turn on and off for the rootNode.
 
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
SdrBaseGame()
          Deprecated.  
 
Method Summary
protected  void cleanup()
          Deprecated. Cleans up the keyboard.
protected  void doDebug(com.jme.renderer.Renderer r)
          Deprecated.  
protected  void initGame()
          Deprecated. Creates rootNode, lighting, and other basic render states.
protected  void initSystem()
          Deprecated. Creates display, sets up camera, and binds keys.
 void onCamera()
          Deprecated. This method is called whenever the camera is moved.
protected  void quit()
          Deprecated. Calls the quit of BaseGame to clean up the display and then closes the JVM.
protected  void reinit()
          Deprecated. Unused.
protected  void render(float interpolation)
          Deprecated. This is called for every frame in BaseGame.start(), after update().
protected abstract  void sdrInitGame()
          Deprecated. Called near end of initGame().
protected  void sdrRender()
          Deprecated. Defined in subclasses for custom rendering.
protected  void sdrUpdate()
          Deprecated. Defined in subclasses for custom updating.
protected  void update(float interpolation)
          Deprecated. Updates the timer, input, and update queue.
 
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

cam

protected com.jme.renderer.Camera cam
Deprecated. 
Our camera.


rootNode

protected com.jme.scene.Node rootNode
Deprecated. 
Root node of our scene graph.


input

protected com.jme.input.InputHandler input
Deprecated. 
Handles mouse/keyboard.


timer

protected com.jme.util.Timer timer
Deprecated. 
High resolution timer for tempo-independent animation.


showDepth

protected boolean showDepth
Deprecated. 
True if the renderer should display the depth buffer.


showBounds

protected boolean showBounds
Deprecated. 
True if the renderer should display bounds.


showNormals

protected boolean showNormals
Deprecated. 
True if the rnederer should display normals.


wireState

protected com.jme.scene.state.WireframeState wireState
Deprecated. 
A wirestate to turn on and off for the rootNode.


lightState

protected com.jme.scene.state.LightState lightState
Deprecated. 
A lightstate to turn on and off for the rootNode.

Constructor Detail

SdrBaseGame

public SdrBaseGame()
Deprecated. 
Method Detail

update

protected final void update(float interpolation)
Deprecated. 
Updates the timer, input, and update queue. Checks 'quit' key.

Specified by:
update in class com.jme.app.FixedFramerateGame
Parameters:
interpolation - unused

sdrUpdate

protected void sdrUpdate()
Deprecated. 
Defined in subclasses for custom updating.


render

protected final void render(float interpolation)
Deprecated. 
This is called for every frame in BaseGame.start(), after update().

Specified by:
render in class com.jme.app.FixedFramerateGame
Parameters:
interpolation - unused in this implementation.

sdrRender

protected void sdrRender()
Deprecated. 
Defined in subclasses for custom rendering.


doDebug

protected void doDebug(com.jme.renderer.Renderer r)
Deprecated. 

initSystem

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

Specified by:
initSystem in class com.jme.app.FixedFramerateGame

onCamera

public void onCamera()
Deprecated. 
This method is called whenever the camera is moved.


initGame

protected void initGame()
Deprecated. 
Creates rootNode, lighting, and other basic render states. Called in BaseGame.start() after initSystem().

Specified by:
initGame in class com.jme.app.FixedFramerateGame

sdrInitGame

protected abstract void sdrInitGame()
Deprecated. 
Called near end of initGame(). Must be defined by derived classes.


reinit

protected void reinit()
Deprecated. 
Unused.

Specified by:
reinit in class com.jme.app.FixedFramerateGame

cleanup

protected void cleanup()
Deprecated. 
Cleans up the keyboard.

Specified by:
cleanup in class com.jme.app.FixedFramerateGame

quit

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

Overrides:
quit in class com.jme.app.FixedFramerateGame

sdr 0.7

Copyright © 2006-2009 C. Scott Ananian