|
sdr 0.7 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jme.app.AbstractGame com.jme.app.FixedFramerateGame net.cscott.sdr.anim.SdrBaseGame
Game
.
public abstract class SdrBaseGame
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.
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 |
---|
protected com.jme.renderer.Camera cam
protected com.jme.scene.Node rootNode
protected com.jme.input.InputHandler input
protected com.jme.util.Timer timer
protected boolean showDepth
protected boolean showBounds
protected boolean showNormals
protected com.jme.scene.state.WireframeState wireState
protected com.jme.scene.state.LightState lightState
Constructor Detail |
---|
public SdrBaseGame()
Method Detail |
---|
protected final void update(float interpolation)
update
in class com.jme.app.FixedFramerateGame
interpolation
- unusedprotected void sdrUpdate()
protected final void render(float interpolation)
render
in class com.jme.app.FixedFramerateGame
interpolation
- unused in this implementation.protected void sdrRender()
protected void doDebug(com.jme.renderer.Renderer r)
protected void initSystem()
initSystem
in class com.jme.app.FixedFramerateGame
public void onCamera()
protected void initGame()
initGame
in class com.jme.app.FixedFramerateGame
protected abstract void sdrInitGame()
protected void reinit()
reinit
in class com.jme.app.FixedFramerateGame
protected void cleanup()
cleanup
in class com.jme.app.FixedFramerateGame
protected void quit()
quit
in class com.jme.app.FixedFramerateGame
|
sdr 0.7 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |