cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands
Class GetItemCategory

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands.GetItemCategory

public class GetItemCategory
extends CommandMessage

Representation of the GameBots2004 command GETITC. Request to export item category by ITC message. Will respond with ITC message.


Field Summary
static java.lang.String PROTOTYPE
          Example how the message looks like - used during parser tests.
protected  java.lang.String Type
          Class of the item we want to export ITC message for.
 
Constructor Summary
GetItemCategory()
          Creates new instance of command GetItemCategory.
GetItemCategory(GetItemCategory original)
          Cloning constructor.
GetItemCategory(java.lang.String Type)
          Creates new instance of command GetItemCategory.
 
Method Summary
 java.lang.String getType()
          Class of the item we want to export ITC message for.
 GetItemCategory setType(java.lang.String Type)
          Class of the item we want to export ITC message for.
 java.lang.String toHtmlString()
           
 java.lang.String toMessage()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROTOTYPE

public static final java.lang.String PROTOTYPE
Example how the message looks like - used during parser tests.

See Also:
Constant Field Values

Type

protected java.lang.String Type
Class of the item we want to export ITC message for. Must be pickup class (e.g. xWeapons.FlakCannonPickup).

Constructor Detail

GetItemCategory

public GetItemCategory(java.lang.String Type)
Creates new instance of command GetItemCategory. Request to export item category by ITC message. Will respond with ITC message. Corresponding GameBots message for this command is GETITC.

Parameters:
Type - Class of the item we want to export ITC message for. Must be pickup class (e.g. xWeapons.FlakCannonPickup).

GetItemCategory

public GetItemCategory()
Creates new instance of command GetItemCategory. Request to export item category by ITC message. Will respond with ITC message. Corresponding GameBots message for this command is GETITC.

WARNING: this is empty-command constructor, you have to use setters to fill it up with data that should be sent to GameBots2004!


GetItemCategory

public GetItemCategory(GetItemCategory original)
Cloning constructor.

Parameters:
original -
Method Detail

getType

public java.lang.String getType()
Class of the item we want to export ITC message for. Must be pickup class (e.g. xWeapons.FlakCannonPickup).


setType

public GetItemCategory setType(java.lang.String Type)
Class of the item we want to export ITC message for. Must be pickup class (e.g. xWeapons.FlakCannonPickup).


toString

public java.lang.String toString()
Overrides:
toString in class CommandMessage

toHtmlString

public java.lang.String toHtmlString()

toMessage

public java.lang.String toMessage()