soc.client
Class SOCPlayerClient.GameOptionDefaultsTimeoutTask
java.lang.Object
java.util.TimerTask
soc.client.SOCPlayerClient.GameOptionDefaultsTimeoutTask
- All Implemented Interfaces:
- java.lang.Runnable
- Enclosing class:
- SOCPlayerClient
private static class SOCPlayerClient.GameOptionDefaultsTimeoutTask
- extends java.util.TimerTask
TimerTask used when new game is asked for, to prevent waiting forever for
game option defaults.
(in case of slow connection or server bug).
Set up when sending GAMEOPTIONGETDEFAULTS
in SOCPlayerClient.GameAwtDisplay.gameWithOptionsBeginSetup(boolean, boolean).
When timer fires, assume no defaults will be received.
Display the new-game dialog.
- Since:
- 1.1.07
- Author:
- jdmonin
|
Method Summary |
void |
run()
Called when timer fires. |
| 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 |
pcli
public SOCPlayerClient.GameAwtDisplay pcli
srvOpts
public ServerGametypeInfo srvOpts
forPracticeServer
public boolean forPracticeServer
SOCPlayerClient.GameOptionDefaultsTimeoutTask
public SOCPlayerClient.GameOptionDefaultsTimeoutTask(SOCPlayerClient.GameAwtDisplay c,
ServerGametypeInfo opts,
boolean forPractice)
run
public void run()
- Called when timer fires. See class description for action taken.
- Specified by:
run in interface java.lang.Runnable- Specified by:
run in class java.util.TimerTask