|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jogre.common.comm.CommBaseMessage
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. |
protected boolean |
isPublic
Boolean to indicate if the table is public or not. |
static int |
REQUEST
User requests invite to a user. |
protected int |
tableNum
Table number. |
static int |
TYPE
Although this extends CommTableMessage this is a game message. |
Fields inherited from class org.jogre.common.comm.CommGameMessage |
gameID, LAYER, usernameTo, XML_ATT_GAME_ID |
Fields inherited from class org.jogre.common.comm.CommBaseMessage |
layer, status, username, XML_ATT_LAYER |
Constructor Summary | |
CommInvite(int status,
boolean isPublic,
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. |
String |
getUsernameTo()
Return the username to. |
boolean |
isPublic()
Return if the table is public or private. |
Methods inherited from class org.jogre.common.comm.CommGameMessage |
flatten, getGameID, isUsernameToSet, setGameID |
Methods inherited from class org.jogre.common.comm.CommBaseMessage |
getStatus, getUsername, setUsername |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int TYPE
public static final int REQUEST
public static final int ACCEPT
public static final int DECLINE
protected boolean isPublic
protected int tableNum
Constructor Detail |
public CommInvite(int status, boolean isPublic, int tableNum, String usernameTo)
status
- Status of the message i.e. request, accept & decline.isPublic
- Boolean to specifie if the table is public or not.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 boolean isPublic()
public String getUsernameTo()
getUsernameTo
in class CommGameMessage
public int getTableNum()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |