public abstract class UpdateLoop extends java.lang.Thread implements ILoop
| Modifier | Constructor and Description |
|---|---|
protected |
UpdateLoop(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
attach(IUpdateable updatable)
Attaches the update method of the specified IUpdatable instance to be called
every tick.
|
void |
detach(IUpdateable updatable)
Detaches the specified instance from the game loop.
|
protected java.util.Set<IUpdateable> |
getUpdatables() |
void |
run() |
protected void |
update() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, 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, yieldequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitstart, terminatepublic void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void attach(IUpdateable updatable)
ILooppublic void detach(IUpdateable updatable)
ILoopprotected java.util.Set<IUpdateable> getUpdatables()
protected void update()