|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
org.jogre.common.Game
Game class which extends the data class
Field Summary | |
protected String |
gameKey
Game key |
protected int |
maxNumOfConnectedUsers
Maximum number of users which can connect to this game at any one time. |
protected int |
maxNumOfTables
Maximum number of tables this server can host at any one time. |
protected TableList |
tableList
List of tables current being played on this server. |
protected UserList |
userList
List of users which are currently connected to the server. |
Constructor Summary | |
Game(String gameKey)
Constructor to a Game object. |
Method Summary | |
String |
getGameStr()
Return the game part of the game key. |
String |
getKey()
Return the key of the game. |
String |
getKeyAsDirectory()
Converts a "directory unfriendly" key into a "directory friendly" key but changing the dashes and dots to underscores. |
TableList |
getTableList()
Return the TableList object or table currently being played. |
UserList |
getUserList()
Returns the UserList object of current connected users. |
String |
getVersionStr()
Return the version part of the game key. |
String |
toString()
Return the game as a String. |
Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected String gameKey
protected int maxNumOfConnectedUsers
protected int maxNumOfTables
protected UserList userList
protected TableList tableList
Constructor Detail |
public Game(String gameKey)
gameKey
- Game keyMethod Detail |
public String getKey()
public String getKeyAsDirectory()
public String getGameStr()
public String getVersionStr()
public UserList getUserList()
public TableList getTableList()
public String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |