|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.TimerTask
pictionary.PictionaryGame.EndDrawTask
private class PictionaryGame.EndDrawTask
A simple class, overriding TimerTask.run()
, used when scheduling
the game's next action, created when a player starts drawing.
Constructor Summary | |
---|---|
private |
PictionaryGame.EndDrawTask()
|
Method Summary | |
---|---|
void |
run()
Calls PictionaryGame.nextAction() if we aren't supposed to
skip it; sometimes a player's draw turn is interrupted and
PictionaryGame.nextAction() is called when a guessing player
makes a correct guess, but the timer is still ticking and we want to
avoid calling PictionaryGame.nextAction() an extra time. |
Methods inherited from class java.util.TimerTask |
---|
cancel, scheduledExecutionTime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
private PictionaryGame.EndDrawTask()
Method Detail |
---|
public void run()
PictionaryGame.nextAction()
if we aren't supposed to
skip it; sometimes a player's draw turn is interrupted and
PictionaryGame.nextAction()
is called when a guessing player
makes a correct guess, but the timer is still ticking and we want to
avoid calling PictionaryGame.nextAction()
an extra time.
run
in interface java.lang.Runnable
run
in class java.util.TimerTask
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |