|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.base.communication.messages.CommandMessage cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands.GiveItem
public class GiveItem
Representation of the GameBots2004 command GIVE. Bot gives an item to other bot (regardless of the automatic pickup settings). Note that other bot must be within reach - less than 200 ut units away (approx. 2 meters). Bot receives message GIVERES with the result of this command - if it was successfull or not.
Field Summary | |
---|---|
protected UnrealId |
Id
Id of the bot we want to give item to. |
static String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected String |
Type
Class of the item, e.g. |
Constructor Summary | |
---|---|
GiveItem()
Creates new instance of command GiveItem. |
|
GiveItem(GiveItem original)
Cloning constructor. |
|
GiveItem(UnrealId Id,
String Type)
Creates new instance of command GiveItem. |
Method Summary | |
---|---|
UnrealId |
getId()
Id of the bot we want to give item to. |
String |
getType()
Class of the item, e.g. |
GiveItem |
setId(UnrealId Id)
Id of the bot we want to give item to. |
GiveItem |
setType(String Type)
Class of the item, e.g. |
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 |
---|
public static final String PROTOTYPE
protected UnrealId Id
protected String Type
Constructor Detail |
---|
public GiveItem(UnrealId Id, String Type)
Id
- Id of the bot we want to give item to.Type
- Class of the item, e.g. "GBEmohawk.ItemBall" (without quotes) we want to give to the bot.public GiveItem()
public GiveItem(GiveItem original)
original
- Method Detail |
---|
public UnrealId getId()
public GiveItem setId(UnrealId Id)
public String getType()
public GiveItem setType(String Type)
public String toString()
toString
in class CommandMessage
public String toHtmlString()
public String toMessage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |