|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectandroid.gameengine.icadroids.engine.GameLoop
android.gameengine.icadroids.engine.UpdateLoop
public class UpdateLoop
EXPERIMENTAL! , runs the gamelogic in a seperate thread. May run the game faster on newer (dualcore) android devices.
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 |
---|
public UpdateLoop(GameEngine ge)
Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
run
in class GameLoop
protected void updateGame()
updateGame
in class GameLoop
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |