|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.pogamut.base.communication.messages.CommandMessage
cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands.AddInventory
public class AddInventory
Representation of the GameBots2004 command ADDINV. 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 GameBots2004.ini file).
| Field Summary | |
|---|---|
protected UnrealId |
Id
Id of the target bot. |
static String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
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 |
|---|
public static final String PROTOTYPE
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.
xWeapons.FlakCannonPickup).public AddInventory()
public AddInventory(AddInventory original)
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 CommandMessagepublic String toHtmlString()
public String toMessage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||