|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object soc.util.SOCGameList.GameInfo
protected static class SOCGameList.GameInfo
Holds most information on one game, except its SOCGame object, which is kept separately.
Includes mutexes to synchronize game state access.
Kept within the SOCGameList.gameInfo
map.
Field Summary | |
---|---|
boolean |
canJoin
|
boolean |
gameDestroyed
Flag for when game has been destroyed, in case anything's waiting on its mutex. |
MutexFlag |
mutex
|
java.util.Map<java.lang.String,SOCGameOption> |
opts
|
java.lang.String |
optsStr
|
Constructor Summary | |
---|---|
SOCGameList.GameInfo(boolean canJoinGame,
java.util.Map<java.lang.String,SOCGameOption> gameOpts)
Constructor: gameOpts is null or contains game option objects |
|
SOCGameList.GameInfo(boolean canJoinGame,
java.lang.String gameOptsStr)
Constructor: gameOptsStr is null or unparsed game options |
Method Summary | |
---|---|
void |
dispose()
|
java.util.Map<java.lang.String,SOCGameOption> |
parseOptsStr()
Parse optsStr to opts, unless it's already been parsed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public MutexFlag mutex
public java.util.Map<java.lang.String,SOCGameOption> opts
public java.lang.String optsStr
public boolean canJoin
public boolean gameDestroyed
Constructor Detail |
---|
public SOCGameList.GameInfo(boolean canJoinGame, java.util.Map<java.lang.String,SOCGameOption> gameOpts)
canJoinGame
- can we join this game?gameOpts
- The game's SOCGameOption
s, or nullpublic SOCGameList.GameInfo(boolean canJoinGame, java.lang.String gameOptsStr)
canJoinGame
- can we join this game?gameOptsStr
- set of SOCGameOption
s as packed by
SOCGameOption.packOptionsToString(Map, boolean)
, or nullMethod Detail |
---|
public java.util.Map<java.lang.String,SOCGameOption> parseOptsStr()
public void dispose()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |