|
||||||||||
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.udk.communication.messages.gbcommands.AddInventory
public class AddInventory
We can add custom inventory for specified bot. This command can be issued also by bot on the bot itself (in this case Id attribute is not parsed). Issuing by bot is allowed just when the game has allowed cheating (bAllowCheats = True in GameBotsUDK.ini file). Corresponding GameBots command is ADDINV.
Field Summary | |
---|---|
protected UnrealId |
Id
Id of the target bot. |
protected String |
Type
Class of the item we want to add. |
Constructor Summary | |
---|---|
AddInventory()
Creates new instance of command AddInventory. |
|
AddInventory(AddInventory original)
Cloning constructor. |
|
AddInventory(UnrealId Id,
String Type)
Creates new instance of command AddInventory. |
Method Summary | |
---|---|
UnrealId |
getId()
Id of the target bot. |
String |
getType()
Class of the item we want to add. |
AddInventory |
setId(UnrealId Id)
Id of the target bot. |
AddInventory |
setType(String Type)
Class of the item we want to add. |
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 |
---|
protected UnrealId Id
protected String Type
Constructor Detail |
---|
public AddInventory(UnrealId Id, String Type)
Id
- Id of the target bot. Is used just when sending command to
the server. If sending command to the bot Id is ignored and
ADDINV command is executed on the bot (if bAllowCheats ==
True).Type
- Class of the item we want to add. Must be pickup class (e.g.
LinkGun.WeaponPickup).public AddInventory()
public AddInventory(AddInventory original)
Method Detail |
---|
public UnrealId getId()
public AddInventory setId(UnrealId Id)
public String getType()
public AddInventory 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 |