|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread soc.server.SOCForceEndTurnThread
class SOCForceEndTurnThread
Force this robot's turn to end, by calling
SOCGameHandler.endGameTurnOrForce(SOCGame, int, String, StringConnection, boolean)
.
Done in a separate thread in case of deadlocks; see run()
for more details.
Created from SOCGameHandler.endTurnIfInactive(SOCGame, long)
when that's called from SOCGameTimeoutChecker.run()
.
Before 2.0.00, this class was SOCServer.SOCForceEndTurnThread; split out in 2.0.00 to its own top-level class.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
private SOCGame |
ga
|
private SOCGameHandler |
hand
|
private SOCPlayer |
pl
|
private SOCServer |
srv
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
SOCForceEndTurnThread(SOCServer srv,
SOCGameHandler hand,
SOCGame g,
SOCPlayer p)
|
Method Summary | |
---|---|
void |
run()
If our targeted robot player is still the current player, force-end their turn. |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final SOCServer srv
private final SOCGameHandler hand
private final SOCGame ga
private final SOCPlayer pl
Constructor Detail |
---|
public SOCForceEndTurnThread(SOCServer srv, SOCGameHandler hand, SOCGame g, SOCPlayer p)
Method Detail |
---|
public void run()
SOCGameHandler.endGameTurnOrForce(SOCGame, int, String, StringConnection, boolean)
.
run
in interface java.lang.Runnable
run
in class java.lang.Thread
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |