org.jogre.common.comm
Class CommSitDown
java.lang.Object
org.jogre.common.comm.CommGameMessage
org.jogre.common.comm.CommTableMessage
org.jogre.common.comm.CommSitDown
- All Implemented Interfaces:
- ITransmittable
- public class CommSitDown
- extends CommTableMessage
Small communication object which is used when a client sits down on
a particular seat at a table. If the seat is free the player list is
updated and notifications are sent to all players at this table.
- Version:
- Alpha 0.2.3
- Author:
- Bob Marks
Constructor Summary |
CommSitDown(int seatNum)
Constructor for requesting joining an existing table. |
CommSitDown(XMLElement message)
Constructor which takes an XMLElement. |
CommSitDown
public CommSitDown(int seatNum)
- Constructor for requesting joining an existing table.
CommSitDown
public CommSitDown(XMLElement message)
- Constructor which takes an XMLElement.
- Parameters:
message
-
getSeatNum
public int getSeatNum()
- Return the seat number.
- Returns:
flatten
public XMLElement flatten()
- Flatten the String for transmission purposes.
- Returns:
- XML version of the state of an object which can be constructed again.
- See Also:
ITransmittable.flatten()