feud.testgame
Class InfoDataContainer

java.lang.Object
  extended byfeud.clientserver.DataContainer
      extended byfeud.testgame.InfoDataContainer
All Implemented Interfaces:
java.lang.Cloneable

public class InfoDataContainer
extends DataContainer

An info data container that offers support for transfering info messages. This container may contain multiple InfoLines.


Field Summary
 
Fields inherited from class feud.clientserver.DataContainer
ci, msgType, objs, pos, TYPE_BYTE, TYPE_FLOAT, TYPE_INT, TYPE_STRING, types
 
Constructor Summary
InfoDataContainer()
          Create a new container.
InfoDataContainer(DataContainer dc)
          Build a new info data container from the content of a generic data container.
 
Method Summary
 void add(InfoLine line)
          Adds a new info line to the container.
 InfoLine getInfoLine()
          Gets the next info line from the container.
 
Methods inherited from class feud.clientserver.DataContainer
add, add, add, add, clone, getBufferLength, getClientInfo, getLength, getMessageType, getNextByte, getNextFloat, getNextInt, getNextString, getRawData, getType, hasData, reset, setClientInfo, setMessageType, skip
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InfoDataContainer

public InfoDataContainer()
Create a new container.


InfoDataContainer

public InfoDataContainer(DataContainer dc)
Build a new info data container from the content of a generic data container.

Parameters:
dc - DataContainer the generic data container
Method Detail

add

public void add(InfoLine line)
Adds a new info line to the container.

Parameters:
line - InfoLine the info

getInfoLine

public InfoLine getInfoLine()
Gets the next info line from the container.

Returns:
InfoLine