|
|||||||||||
| 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 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,
int minNumOfPlayers,
int maxNumOfPlayers)
Constructor to a Game object. |
|
Game(XMLElement message)
Game constructor which takes an XMLElement as a parameter. |
|
| Method Summary | |
XMLElement |
flatten()
Flatten this object. |
String |
getGameStr()
Return the game part of the game key. |
String |
getKey()
Return the key of the game. |
int |
getMaxNumOfPlayers()
Return the minimum number of players in a game. |
int |
getMinNumOfPlayers()
Return the minimum number of players in a game. |
TableList |
getTableList()
Return the TableList object or table currently being played. |
UserList |
getUserList()
Returns the UserList object of current connected users. |
void |
setTableList(TableList tableList)
Set the table list. |
void |
setUserList(UserList userlist)
Set the userlist. |
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 UserList userList
protected TableList tableList
| Constructor Detail |
public Game(String gameKey,
int minNumOfPlayers,
int maxNumOfPlayers)
gameKey - Game key
public Game(XMLElement message)
throws TransmissionException
message -
TransmissionException| Method Detail |
public String getKey()
public String getGameStr()
public int getMinNumOfPlayers()
public int getMaxNumOfPlayers()
public UserList getUserList()
public void setUserList(UserList userlist)
userlist - New userlist which replaces the older one.public void setTableList(TableList tableList)
tableList - New tablelist which replaces the older one.public TableList getTableList()
public String toString()
Object.toString()public XMLElement flatten()
flatten in interface ITransmittableITransmittable.flatten()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||