|
|||||||||||
| 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.widget.TestWidgetApp1
| Field Summary |
| 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 | |
TestWidgetApp1()
|
|
| Method Summary | |
protected void |
cleanup()
cleanup cleans up any created objects before exiting the
application. |
protected void |
initGame()
initGame creates and initializes all game data required
for startup. |
protected void |
initSystem()
initSystem creates all the necessary system components
for the client application. |
static void |
main(java.lang.String[] args)
|
protected void |
reinit()
reinit rebuilds the subsystems. |
protected void |
render(float interpolation)
render displays the game information to the OpenGL context. |
protected void |
update(float interpolation)
update updates the game state. |
| 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 |
| Constructor Detail |
public TestWidgetApp1()
| Method Detail |
protected void update(float interpolation)
AbstractGameupdate updates the game state. Physics, AI, networking, score
checking and like should be completed in this method. How often and when
this method is called depends on the main loop implementation.
update in class BaseGameinterpolation - unused in this implementationAbstractGame.update(float interpolation)protected void render(float interpolation)
AbstractGamerender displays the game information to the OpenGL context.
Nothing altering the game state should be run during a render. How often
and when this method is called depends on the main loop implementation.
render in class BaseGameinterpolation - unused in this implementationAbstractGame.render(float interpolation)protected void initSystem()
AbstractGameinitSystem creates all the necessary system components
for the client application. It is is called once after start
is called. The display must be initialized within this method.
initSystem in class BaseGameAbstractGame.initSystem()protected void initGame()
AbstractGameinitGame creates and initializes all game data required
for startup. It is suggested that caching of frequently used resources
is done within this method. It is called once after initSystem
has completed.
initGame in class BaseGameAbstractGame.initGame()protected void reinit()
AbstractGamereinit rebuilds the subsystems. It may be called at any time
by the client application.
reinit in class BaseGameAbstractGame.reinit()protected void cleanup()
AbstractGamecleanup cleans up any created objects before exiting the
application. It is called once after finish is called.
cleanup in class BaseGameAbstractGame.cleanup()public static void main(java.lang.String[] args)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||