jmetest.widget
Class TestWidgetApp2

java.lang.Object
  extended bycom.jme.app.AbstractGame
      extended bycom.jme.app.BaseGame
          extended byjmetest.widget.TestWidgetApp2
All Implemented Interfaces:
java.util.Observer

public class TestWidgetApp2
extends BaseGame
implements java.util.Observer

TestWidgetApp2

Version:
Author:
Gregg Patton

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
TestWidgetApp2()
           
 
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.
 void update(java.util.Observable o, java.lang.Object arg)
           
 
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

TestWidgetApp2

public TestWidgetApp2()
Method Detail

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)

update

public void update(java.util.Observable o,
                   java.lang.Object arg)
Specified by:
update in interface java.util.Observer