|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jogre.common.comm.CommGameMessage
org.jogre.common.comm.CommTableMessage
org.jogre.common.comm.CommControllerProperty
Communication object to send a key/value property from a client to server or vice versa. Used in the JogreController to simplify the sending and receiving of data.
| Field Summary | |
static int |
TYPE_INT
Type is an integer. |
static int |
TYPE_INT_TWO
Type is two integer e.g. |
static int |
TYPE_STRING
Type is a String. |
| 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 | |
CommControllerProperty(int status,
String key,
String value)
Constructor which takes a username, status, table number and a value. |
|
CommControllerProperty(XMLElement message)
Constructor which reads the game over object from a String. |
|
| Method Summary | |
XMLElement |
flatten()
Flatten communciation object. |
String |
getKey()
Return the key. |
String |
getValue()
Return the value. |
| 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 TYPE_STRING
public static final int TYPE_INT
public static final int TYPE_INT_TWO
| Constructor Detail |
public CommControllerProperty(int status,
String key,
String value)
status - Type of message e.g. TYPE_STRING, TYPE_INT etc.key - Keyvalue - Value
public CommControllerProperty(XMLElement message)
throws TransmissionException
message - XML element version of object.
TransmissionException - Thrown if problem in transmission| Method Detail |
public String getKey()
public String getValue()
public XMLElement flatten()
ITransmittable.flatten()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||