org.jogre.common.comm
Class CommExitTable

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

public class CommExitTable
extends CommTableMessage

Small communication object for exiting a table.

Version:
Alpha 0.2.3
Author:
Bob Marks

Field Summary
 
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
CommExitTable()
          Constructor for requesting joining an existing table.
CommExitTable(int tableNum, String username)
          Constructor which the server informs clients that a user has left a table.
CommExitTable(XMLElement message)
          Constructor which takes an XMLElement.
 
Method Summary
 XMLElement flatten()
          Flatten the String for transmission purposes.
 
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
 

Constructor Detail

CommExitTable

public CommExitTable()
Constructor for requesting joining an existing table.


CommExitTable

public CommExitTable(int tableNum,
                     String username)
Constructor which the server informs clients that a user has left a table.

Parameters:
username -

CommExitTable

public CommExitTable(XMLElement message)
Constructor which takes an XMLElement.

Parameters:
message -
Method Detail

flatten

public XMLElement flatten()
Flatten the String for transmission purposes.

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