|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jogre.common.comm.CommGameMessage org.jogre.common.comm.CommTableMessage org.jogre.common.comm.CommPlayerState
Communication object for informing the server that the state of a player has been updated.
Field Summary | |
static int |
NO_SEAT
|
static String |
XML_ATT_SEAT
|
static String |
XML_ATT_STATE
|
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 | |
CommPlayerState(int table,
String player,
int seatNum)
Constructor which takes a table number, a player's name and a seat number (player state is seated). |
|
CommPlayerState(int table,
String player,
PlayerState state)
Constructor which takes a table number, a player's name and a state. |
|
CommPlayerState(XMLElement message)
Constructor which takes an XMLElement. |
Method Summary | |
XMLElement |
flatten()
Flatten this to an XMLElement. |
int |
getSeatNum()
Return the seat number. |
PlayerState |
getState()
Return this state. |
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 |
Field Detail |
public static final int NO_SEAT
public static final String XML_ATT_STATE
public static final String XML_ATT_SEAT
Constructor Detail |
public CommPlayerState(int table, String player, PlayerState state)
table
- Table number of player.player
- Name of player.state
- State of the player.public CommPlayerState(int table, String player, int seatNum)
table
- Table number of player.player
- Name of player.seatNum
- Seat which player has sat at.public CommPlayerState(XMLElement message)
message
- XML version of this method.Method Detail |
public PlayerState getState()
public int getSeatNum()
public XMLElement flatten()
ITransmittable.flatten()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |