|
|||||||||||
| 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.CommChatGame
Communication class which is used to broadcast a chat message to all users at a particular game.
| Field Summary | |
protected String |
chat
Chat String. |
| Fields inherited from class org.jogre.common.comm.CommGameMessage |
status, username, usernameTo, XML_ATT_STATUS, XML_ATT_USERNAME, XML_ATT_USERNAME_TO |
| Constructor Summary | |
CommChatGame(String chat)
Constructer for a broadcast message which is sent to everyone. |
|
CommChatGame(XMLElement message)
Constructor which creates a CommChatBroadcast object from the flatten () method of another CommChatBroadcast object. |
|
| Method Summary | |
XMLElement |
flatten()
Transmittable String representation of this object. |
String |
getChat()
Return the content of the message. |
| 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 |
protected String chat
| Constructor Detail |
public CommChatGame(String chat)
chat - Chat message from user.
public CommChatGame(XMLElement message)
throws TransmissionException
message - XML element version of object.
TransmissionException - Thrown if problem in transmission| Method Detail |
public XMLElement flatten()
ITransmittable.flatten()public String getChat()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||