|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jogre.common.comm.CommGameMessage
org.jogre.common.comm.CommTableMessage
org.jogre.common.comm.CommJoinTable
Small communication object for joining an existing table.
Field Summary |
Fields inherited from class org.jogre.common.comm.CommTableMessage |
NO_TABLE, tableNum, XML_ATT_TABLE_NUM |
Fields inherited from class org.jogre.common.comm.CommGameMessage |
status, username, usernameTo, XML_ATT_STATUS, XML_ATT_USERNAME, XML_ATT_USERNAME_TO |
Constructor Summary | |
CommJoinTable(int tableNum)
Constructor for client requesting joining an existing table. |
|
CommJoinTable(String username,
int tableNum)
Constructor for a server responding to other clients. |
|
CommJoinTable(String username,
Table table)
Constructor from the server to the joining client. |
|
CommJoinTable(XMLElement message)
Constructor which takes an XMLElement. |
Method Summary | |
boolean |
containsModel()
Return true if this message contains a model. |
XMLElement |
flatten()
Flatten the String for transmission purposes. |
XMLElement |
getModelState()
Return the model state. |
PlayerList |
getPlayerList()
Return the player list. |
Methods inherited from class org.jogre.common.comm.CommTableMessage |
flatten, getTableNum, setTableNum |
Methods inherited from class org.jogre.common.comm.CommGameMessage |
getStatus, getUsername, getUsernameTo, isUsernameSet, isUsernameToSet, setUsername, setUsernameTo, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CommJoinTable(int tableNum)
public CommJoinTable(String username, Table table)
username
- Name of username who has just joined.table
- Table object that the user is joining.public CommJoinTable(String username, int tableNum)
username
- Name of username who has just joined.tableNum
- Table number of table user is joining.public CommJoinTable(XMLElement message)
message
- Method Detail |
public PlayerList getPlayerList()
public XMLElement getModelState()
public boolean containsModel()
public XMLElement flatten()
ITransmittable.flatten()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |