|
|||||||||||
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.CommInvite
Communication class which is used to invite a user to a table.
Field Summary | |
static int |
ACCEPT
User accepts invite from a user. |
static int |
DECLINE
User declines invite from. |
static int |
REQUEST
User requests invite to a user. |
protected int |
tableNum
Table number. |
Fields inherited from class org.jogre.common.comm.CommGameMessage |
status, username, usernameTo, XML_ATT_STATUS, XML_ATT_USERNAME, XML_ATT_USERNAME_TO |
Constructor Summary | |
CommInvite(int status,
int tableNum)
Constructor which takes a status and table number. |
|
CommInvite(int status,
int tableNum,
String usernameTo)
Constructor for a CommInvite object which is used to invite a user to a particular table. |
|
CommInvite(XMLElement message)
Constructor which creates a CommInvite object from the flatten () method of another CommInvite object. |
Method Summary | |
XMLElement |
flatten()
Flatten this offer draw object. |
int |
getTableNum()
Return the table number. |
Methods inherited from class org.jogre.common.comm.CommGameMessage |
flatten, 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 REQUEST
public static final int ACCEPT
public static final int DECLINE
protected int tableNum
Constructor Detail |
public CommInvite(int status, int tableNum)
status
- Status of the message i.e. request, accept & decline.tableNum
- Table number.public CommInvite(int status, int tableNum, String usernameTo)
status
- Status of the message i.e. request, accept & decline.tableNum
- Table number.usernameTo
- The user that is being invited.public CommInvite(XMLElement message) throws TransmissionException
message
- XML element version of object.
TransmissionException
- Thrown if problem in transmissionMethod Detail |
public XMLElement flatten()
ITransmittable.flatten()
public int getTableNum()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |