org.jogre.common.comm
Class CommChatPrivate

java.lang.Object
  extended byorg.jogre.common.comm.CommGameMessage
      extended byorg.jogre.common.comm.CommChatGame
          extended byorg.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

Field Summary
 
Fields inherited from class org.jogre.common.comm.CommChatGame
chat
 
Fields inherited from class org.jogre.common.comm.CommGameMessage
status, username, usernameTo, XML_ATT_STATUS, XML_ATT_USERNAME, XML_ATT_USERNAME_TO
 
Constructor Summary
CommChatPrivate(String chat, String usernameTo)
          Constructer for a private message which takes a message and a usernameTo.
CommChatPrivate(XMLElement message)
          Constructor which takes an XMLElement.
 
Method Summary
 XMLElement flatten()
          Flatten this object class to an XML message.
 
Methods inherited from class org.jogre.common.comm.CommChatGame
getChat
 
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
 

Constructor Detail

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
Method Detail

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()