|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jme.app.AbstractGame
com.jme.app.BaseGame
jmetest.TutorialGuide.HelloSimpleGame
Started Date: Jul 29, 2004
Is used to demonstrate the inner workings of SimpleGame.
| Field Summary | |
protected Camera |
cam
The camera that we see through. |
static java.lang.String |
fontLocation
Location of the font for jME's text at the bottom |
protected Text |
fps
Displays all the lovely information at the bottom. |
protected Node |
fpsNode
The root node of our text. |
protected InputHandler |
input
Handles our mouse/keyboard input. |
protected LightState |
lightState
A lightstate to turn on and off for the rootNode |
protected Node |
rootNode
The root of our normal scene graph. |
protected boolean |
showBounds
True if the renderer should display bounds. |
protected Timer |
timer
High resolution timer for jME. |
protected float |
tpf
Simply an easy way to get at timer.getTimePerFrame(). |
protected WireframeState |
wireState
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 | |
HelloSimpleGame()
|
|
| Method Summary | |
protected void |
cleanup()
Cleans up the keyboard. |
protected void |
initGame()
Creates rootNode, lighting, statistic text, and other basic render states. |
protected void |
initSystem()
Creates display, sets up camera, and binds keys. |
static void |
main(java.lang.String[] args)
|
protected void |
reinit()
unused |
protected void |
render(float interpolation)
This is called every frame in BaseGame.start(), after update() |
protected void |
simpleInitGame()
|
protected void |
simpleRender()
Can be defined in derived classes for custom rendering. |
protected void |
simpleUpdate()
Can be defined in derived classes for custom updating. |
protected void |
update(float interpolation)
This is called every frame in BaseGame.start() |
| Methods inherited from class com.jme.app.BaseGame |
quit, 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 Camera cam
protected Node rootNode
protected InputHandler input
protected Timer timer
protected Node fpsNode
protected Text fps
protected float tpf
protected boolean showBounds
protected WireframeState wireState
protected LightState lightState
public static java.lang.String fontLocation
| Constructor Detail |
public HelloSimpleGame()
| Method Detail |
public static void main(java.lang.String[] args)
protected final void update(float interpolation)
update in class BaseGameinterpolation - unused in this implementationAbstractGame.update(float interpolation)protected final void render(float interpolation)
render in class BaseGameinterpolation - unused in this implementationAbstractGame.render(float interpolation)protected final void initSystem()
initSystem in class BaseGameAbstractGame.initSystem()protected final void initGame()
initGame in class BaseGameAbstractGame.initGame()protected void simpleInitGame()
protected void simpleUpdate()
protected void simpleRender()
protected void reinit()
reinit in class BaseGameAbstractGame.reinit()protected void cleanup()
cleanup in class BaseGameAbstractGame.cleanup()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||