|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.brackeen.javagamebook.scripting.GameTaskManager
Manages a queue of GameTask objects.
| Constructor Summary | |
GameTaskManager()
Creates a new GameTaskManager with a empty task queue. |
|
| Method Summary | |
void |
addTask(GameTask task)
Adds a task to the queue. |
void |
addTask(long delay,
java.lang.Runnable runnable)
Adds a task to the queue that exetued the specified runnable after a delay. |
void |
clear()
Clears the task queue. |
void |
update(long elapsedTime)
Updates this manager, executing any ready tasks. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GameTaskManager()
| Method Detail |
public void addTask(long delay,
java.lang.Runnable runnable)
public void addTask(GameTask task)
public void clear()
public void update(long elapsedTime)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||