soc.client
Class SOCPlayerClient.GameOptionDefaultsTimeoutTask

java.lang.Object
  extended by java.util.TimerTask
      extended by 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

Field Summary
 boolean forPracticeServer
           
 SOCPlayerClient.GameAwtDisplay pcli
           
 ServerGametypeInfo srvOpts
           
 
Constructor Summary
SOCPlayerClient.GameOptionDefaultsTimeoutTask(SOCPlayerClient.GameAwtDisplay c, ServerGametypeInfo opts, boolean forPractice)
           
 
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
 

Field Detail

pcli

public SOCPlayerClient.GameAwtDisplay pcli

srvOpts

public ServerGametypeInfo srvOpts

forPracticeServer

public boolean forPracticeServer
Constructor Detail

SOCPlayerClient.GameOptionDefaultsTimeoutTask

public SOCPlayerClient.GameOptionDefaultsTimeoutTask(SOCPlayerClient.GameAwtDisplay c,
                                                     ServerGametypeInfo opts,
                                                     boolean forPractice)
Method Detail

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