|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.TimerTask
com.asdf.common.GameTimerTask
public abstract class GameTimerTask
TimerTask wrapper, which synchronizes calling Game
| Constructor Summary | |
|---|---|
GameTimerTask(Game game)
Constructor |
|
| Method Summary | |
|---|---|
abstract void |
onTick()
Method that is called when the timer fires. |
void |
run()
Run method that synchronizes game before calling onTick. |
| Methods inherited from class java.util.TimerTask |
|---|
cancel, scheduledExecutionTime |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GameTimerTask(Game game)
game - Game used for synchronization| Method Detail |
|---|
public void run()
run in interface java.lang.Runnablerun in class java.util.TimerTaskpublic abstract void onTick()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||