jmetest.widget
Class TestWidgetAppTemplate
java.lang.Object
com.jme.app.AbstractGame
com.jme.app.BaseGame
jmetest.widget.TestWidgetAppTemplate
- public class TestWidgetAppTemplate
- extends BaseGame
- Author:
- Gregg Patton
To change the template for this generated type comment go to
Window>Preferences>Java>Code Generation>Code and Comments
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestWidgetAppTemplate
public TestWidgetAppTemplate()
update
protected void update(float interpolation)
- Description copied from class:
AbstractGame
update 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.
- Specified by:
update in class BaseGame
- Parameters:
interpolation - unused in this implementation- See Also:
AbstractGame.update(float interpolation)
render
protected void render(float interpolation)
- Description copied from class:
AbstractGame
render 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.
- Specified by:
render in class BaseGame
- Parameters:
interpolation - unused in this implementation- See Also:
AbstractGame.render(float interpolation)
initSystem
protected void initSystem()
- Description copied from class:
AbstractGame
initSystem 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.
- Specified by:
initSystem in class BaseGame
- See Also:
AbstractGame.initSystem()
initGame
protected void initGame()
- Description copied from class:
AbstractGame
initGame 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.
- Specified by:
initGame in class BaseGame
- See Also:
AbstractGame.initGame()
reinit
protected void reinit()
- Description copied from class:
AbstractGame
reinit rebuilds the subsystems. It may be called at any time
by the client application.
- Specified by:
reinit in class BaseGame
- See Also:
AbstractGame.reinit()
cleanup
protected void cleanup()
- Description copied from class:
AbstractGame
cleanup cleans up any created objects before exiting the
application. It is called once after finish is called.
- Specified by:
cleanup in class BaseGame
- See Also:
AbstractGame.cleanup()
main
public static void main(java.lang.String[] args)