de.adom.jade.kernel
Class GameLoop

java.lang.Object
  extended by java.lang.Thread
      extended by de.adom.jade.kernel.GameLoop
All Implemented Interfaces:
java.lang.Runnable

public class GameLoop
extends java.lang.Thread

Handles the actual game loop that executes all actions be the acting instances in the game. This loop is run in a separate thread that occasionally interacts with the user interface.


Nested Class Summary
 
Nested classes inherited from class java.lang.Thread
java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
GameLoop()
           
 
Method Summary
 void run()
          Runs the game in a new thread.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GameLoop

public GameLoop()
Method Detail

run

public void run()
Runs the game in a new thread.

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