yaarq.dmo
Class yrqDemoScene

java.lang.Object
  |
  +--yaarq.dmo.yrqDemoScene
Direct Known Subclasses:
yrqDemoSceneDesert, yrqDemoSceneExtro, yrqDemoSceneIntro, yrqDemoSceneSpace

public abstract class yrqDemoScene
extends java.lang.Object


Constructor Summary
yrqDemoScene()
           
 
Method Summary
abstract  void initialise(yrqEngine a_engine)
          This method initialises the scene by adding all its objects to the engines various collections and setting its internal parameters.
abstract  boolean isFinished()
          This function should return a flag indicating if the application can stop updating this scene and should call the terminate method and start the next scene.
abstract  void load(yrqRepository a_repository)
          This method loads all necessary ressources into the repository.
 void terminate(yrqEngine a_engine)
          This method terminates the scene by cleaning all its objects in the engines various collections and resetting its internal parameters.
abstract  void update(yrqEngine a_engine)
          This method update the scene by manipulating all its objects in the engines various collections and setting its internal parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

yrqDemoScene

public yrqDemoScene()
Method Detail

initialise

public abstract void initialise(yrqEngine a_engine)
This method initialises the scene by adding all its objects to the engines various collections and setting its internal parameters.

Parameters:
a_engine - The engine instance to use

isFinished

public abstract boolean isFinished()
This function should return a flag indicating if the application can stop updating this scene and should call the terminate method and start the next scene.


load

public abstract void load(yrqRepository a_repository)
This method loads all necessary ressources into the repository. Called once, during the engines load callback to the application.

Parameters:
a_repository - The repository into which to load

terminate

public void terminate(yrqEngine a_engine)
This method terminates the scene by cleaning all its objects in the engines various collections and resetting its internal parameters.

Parameters:
a_engine - The engine instance to use

update

public abstract void update(yrqEngine a_engine)
This method update the scene by manipulating all its objects in the engines various collections and setting its internal parameters.

Parameters:
a_engine - The engine instance to use