android.gameengine.icadroids.engine
Class UpdateLoop

java.lang.Object
  extended by android.gameengine.icadroids.engine.GameLoop
      extended by android.gameengine.icadroids.engine.UpdateLoop
All Implemented Interfaces:
java.lang.Runnable

public class UpdateLoop
extends GameLoop
implements java.lang.Runnable

EXPERIMENTAL! , runs the gamelogic in a seperate thread. May run the game faster on newer (dualcore) android devices.

Author:
Edward & Bas

Field Summary
 
Fields inherited from class android.gameengine.icadroids.engine.GameLoop
c, MAX_FPS
 
Constructor Summary
UpdateLoop(GameEngine ge)
           
 
Method Summary
 void run()
          Main game-loop thread that handles gamelogic and rendering.
protected  void updateGame()
          Allows the game to run logic such as updating the world, checking for collisions, gathering input, and playing audio.
 
Methods inherited from class android.gameengine.icadroids.engine.GameLoop
endDraw, getCurrentSystemTime, getRunningState, setRunning, setView, startDraw
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateLoop

public UpdateLoop(GameEngine ge)
Method Detail

run

public void run()
Main game-loop thread that handles gamelogic and rendering.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class GameLoop

updateGame

protected void updateGame()
Allows the game to run logic such as updating the world, checking for collisions, gathering input, and playing audio.

Overrides:
updateGame in class GameLoop