|
|||||||||||
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.CommTableMessage
org.jogre.common.comm.CommTableAction
Communication class for performming table actions such as creating a new table, joining an existing table, standing up, being ready-to-start and exitting from a table.
Field Summary | |
static int |
EXIT
Exit from a table. |
static int |
JOIN
Join an existing game. |
static int |
NEW
Create a new table. |
static int |
NEXT_PLAYER
Next player |
static int |
READY_TO_START
Ready to start a game. |
static int |
STAND_UP
Stand up from a game. |
static int |
START
Actually start the game. |
Fields inherited from class org.jogre.common.comm.CommTableMessage |
NO_TABLE, omitSender, tableNum, XML_ATT_TABLE_NUM |
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 |
Fields inherited from interface org.jogre.common.comm.ITransmittableWithProps |
XML_ATT_PROPERTIES |
Constructor Summary | |
CommTableAction(boolean isPublic)
Creating a new table. |
|
CommTableAction(int status)
Creating a new table. |
|
CommTableAction(int status,
boolean isPublic)
Used for inviting a user. |
|
CommTableAction(XMLElement message)
Constructor which creates a CommTableAction object from the flatten () method of another CommTableAction object. |
Method Summary | |
void |
addProperty(String key,
String value)
Add a property to the Table Action. |
XMLElement |
flatten()
Flatten the String for transmission purposes. |
JogrePropertyHash |
getProperties()
Return the properties hash. |
boolean |
isPublic()
Return true / false. |
Methods inherited from class org.jogre.common.comm.CommTableMessage |
flatten, getTableNum, isOmittingSender, setTableNum |
Methods inherited from class org.jogre.common.comm.CommGameMessage |
getGameID, getUsernameTo, 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 NEW
public static final int JOIN
public static final int STAND_UP
public static final int READY_TO_START
public static final int START
public static final int NEXT_PLAYER
public static final int EXIT
Constructor Detail |
public CommTableAction(int status, boolean isPublic)
status
- Status of the messageisPublic
- Boolean to specifie if the table is public or not.public CommTableAction(int status)
status
- Status of the messagepublic CommTableAction(boolean isPublic)
isPublic
- boolean to show if a table is public or not.public CommTableAction(XMLElement message) throws TransmissionException
message
- XML element version of object.
TransmissionException
- Thrown if problem in transmissionMethod Detail |
public boolean isPublic()
public void addProperty(String key, String value)
addProperty
in interface ITransmittableWithProps
key
- value
- public JogrePropertyHash getProperties()
ITransmittableWithProps
getProperties
in interface ITransmittableWithProps
ITransmittableWithProps.getProperties()
public XMLElement flatten()
flatten
in interface ITransmittable
ITransmittable.flatten()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |