org.jogre.common.comm
Class CommChatPrivate
java.lang.Object
org.jogre.common.comm.CommGameMessage
org.jogre.common.comm.CommChatGame
org.jogre.common.comm.CommChatPrivate
- All Implemented Interfaces:
- ITransmittable
- public class CommChatPrivate
- extends CommChatGame
Communication class which is used to send a private message between users.
- Version:
- Alpha 0.2.3
- Author:
- Bob Marks
CommChatPrivate
public CommChatPrivate(String chat,
String usernameTo)
- Constructer for a private message which takes a message and a usernameTo.
- Parameters:
chat
- Chat message from user.usernameTo
- Name of user the chat is going to.
CommChatPrivate
public CommChatPrivate(XMLElement message)
throws TransmissionException
- Constructor which takes an XMLElement.
- Parameters:
message
-
- Throws:
TransmissionException
flatten
public XMLElement flatten()
- Flatten this object class to an XML message.
- Specified by:
flatten
in interface ITransmittable
- Overrides:
flatten
in class CommChatGame
- See Also:
ITransmittable.flatten()