|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.brackeen.javagamebook.scripting.GameTask
A game task that can be scheduled for one-time execution.
Constructor Summary | |
GameTask(long delay,
java.lang.Runnable runnable)
Creates a new GameTask that will execute the specified Runnable after a delay. |
Method Summary | |
void |
cancel()
Cancels this task. |
boolean |
check(long elapsedTime)
Checks to see if this GameTask is ready to execute, and if so, it is executed. |
void |
run()
Runs this task. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GameTask(long delay, java.lang.Runnable runnable)
Method Detail |
public void cancel()
public void run()
run
in interface java.lang.Runnable
public boolean check(long elapsedTime)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |