org.jogre.common.comm
Class CommChatTable

java.lang.Object
  extended byorg.jogre.common.comm.CommGameMessage
      extended byorg.jogre.common.comm.CommTableMessage
          extended byorg.jogre.common.comm.CommChatTable
All Implemented Interfaces:
ITransmittable

public class CommChatTable
extends CommTableMessage

Chat communications object for chat at a table.

Version:
Alpha 0.2.3
Author:
Bob Marks

Field Summary
protected  String chat
          Chat String.
 
Fields inherited from class org.jogre.common.comm.CommTableMessage
NO_TABLE, tableNum, XML_ATT_TABLE_NUM
 
Fields inherited from class org.jogre.common.comm.CommGameMessage
status, username, usernameTo, XML_ATT_STATUS, XML_ATT_USERNAME, XML_ATT_USERNAME_TO
 
Constructor Summary
CommChatTable(String chat)
          Constructor which takes a message.
CommChatTable(XMLElement message)
          Constructor which creates a CommChatRoom object from the flatten () method of another CommChatRoom object.
 
Method Summary
 XMLElement flatten()
          Transmittable String representation of this object.
 String getChat()
          Return the text of the message.
 
Methods inherited from class org.jogre.common.comm.CommTableMessage
flatten, getTableNum, setTableNum
 
Methods inherited from class org.jogre.common.comm.CommGameMessage
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

chat

protected String chat
Chat String.

Constructor Detail

CommChatTable

public CommChatTable(String chat)
Constructor which takes a message.

Parameters:
chat -

CommChatTable

public CommChatTable(XMLElement message)
              throws TransmissionException
Constructor which creates a CommChatRoom object from the flatten () method of another CommChatRoom object.

Parameters:
message -
Throws:
TransmissionException
Method Detail

getChat

public String getChat()
Return the text of the message.

Returns:
Chat message from user.

flatten

public XMLElement flatten()
Transmittable String representation of this object.

Returns:
XML version of the state of an object which can be constructed again.
See Also:
ITransmittable.flatten()