|
|||||||||||
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.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_ARRAY
Type is a point. |
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, 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 |
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, 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 TYPE_STRING
public static final int TYPE_INT
public static final int TYPE_INT_TWO
public static final int TYPE_INT_ARRAY
Constructor Detail |
public CommControllerProperty(int status, String key, String value)
status
- Type of message e.g. TYPE_STRING, TYPE_INT etc.key
- Keyvalue
- Valuepublic CommControllerProperty(XMLElement message) throws TransmissionException
message
- XML element version of object.
TransmissionException
- Thrown if problem in transmissionMethod 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 |