public class GiveItem extends CommandMessage
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
GiveItem()
Creates new instance of command GiveItem.
|
GiveItem(GiveItem original)
Cloning constructor.
|
GiveItem(UnrealId Id,
String Type)
Creates new instance of command GiveItem.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
public static final String PROTOTYPE
protected UnrealId Id
protected String Type
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 - public UnrealId getId()
public String getType()
public GiveItem setType(String Type)
public String toString()
toString in class CommandMessagepublic String toHtmlString()
public String toMessage()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.