|
|||||||||||
| 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.CommChatGame
Communication class which is used to broadcast a chat message to all users at a particular game.
| Field Summary | |
static int |
BROADCAST
Broadcast to all users in a game. |
protected String |
chat
Chat String. |
static int |
PRIVATE
Send to a single user in a private conversation. |
| 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 | |
CommChatGame(String chat)
Constructer for a broadcast message which is sent to everyone. |
|
CommChatGame(String chat,
String usernameTo)
Constructer for a private message which takes a message and a usernameTo. |
|
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, 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 BROADCAST
public static final int PRIVATE
protected String chat
| Constructor Detail |
public CommChatGame(String chat)
chat - Chat message from user.
public CommChatGame(String chat,
String usernameTo)
chat - Chat message from user.usernameTo - Name of user the chat is going to.
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 | ||||||||||