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

Package class diagram package PutDownItem
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands.PutDownItem

public class PutDownItem
extends CommandMessage

Representation of the GameBots2004 command PUT. Bot putdowns input item at the location he is currently at. Note that If autopickup is set to true he will pick it up immediately back.


Field Summary
static String PROTOTYPE
          Example how the message looks like - used during parser tests.
protected  String Type
          Class of the item.
 
Constructor Summary
PutDownItem()
          Creates new instance of command PutDownItem.
PutDownItem(PutDownItem original)
          Cloning constructor.
PutDownItem(String Type)
          Creates new instance of command PutDownItem.
 
Method Summary
 String getType()
          Class of the item.
 PutDownItem setType(String Type)
          Class of the item.
 String toHtmlString()
           
 String toMessage()
           
 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 String PROTOTYPE
Example how the message looks like - used during parser tests.

See Also:
Constant Field Values

Type

protected String Type
Class of the item. E.g. "GBEmohawk.ItemBall" (without quotes).

Constructor Detail

PutDownItem

public PutDownItem(String Type)
Creates new instance of command PutDownItem. Bot putdowns input item at the location he is currently at. Note that If autopickup is set to true he will pick it up immediately back. Corresponding GameBots message for this command is PUT.

Parameters:
Type - Class of the item. E.g. "GBEmohawk.ItemBall" (without quotes).

PutDownItem

public PutDownItem()
Creates new instance of command PutDownItem. Bot putdowns input item at the location he is currently at. Note that If autopickup is set to true he will pick it up immediately back. Corresponding GameBots message for this command is PUT.

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


PutDownItem

public PutDownItem(PutDownItem original)
Cloning constructor.

Parameters:
original -
Method Detail

getType

public String getType()
Class of the item. E.g. "GBEmohawk.ItemBall" (without quotes).


setType

public PutDownItem setType(String Type)
Class of the item. E.g. "GBEmohawk.ItemBall" (without quotes).


toString

public String toString()
Overrides:
toString in class CommandMessage

toHtmlString

public String toHtmlString()

toMessage

public String toMessage()


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.