|
|||||||||
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.GiveInventory
public class GiveInventory
Representation of the GameBots2004 command GIVEINV. Gives inventory from one bot to another. Bot can give just owned items. (in his inventory chain). He can't give weapon he is wielding right now. This command is not fully tested yet and has issues.
Field Summary | |
---|---|
protected java.lang.String |
ItemId
Id of the item in the inventory chain of the giver. |
static java.lang.String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected UnrealId |
Target
Id of the receiving bot. |
Constructor Summary | |
---|---|
GiveInventory()
Creates new instance of command GiveInventory. |
|
GiveInventory(GiveInventory original)
Cloning constructor. |
|
GiveInventory(UnrealId Target,
java.lang.String ItemId)
Creates new instance of command GiveInventory. |
Method Summary | |
---|---|
java.lang.String |
getItemId()
Id of the item in the inventory chain of the giver. |
UnrealId |
getTarget()
Id of the receiving bot. |
GiveInventory |
setItemId(java.lang.String ItemId)
Id of the item in the inventory chain of the giver. |
GiveInventory |
setTarget(UnrealId Target)
Id of the receiving bot. |
java.lang.String |
toHtmlString()
|
java.lang.String |
toMessage()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROTOTYPE
protected UnrealId Target
protected java.lang.String ItemId
Constructor Detail |
---|
public GiveInventory(UnrealId Target, java.lang.String ItemId)
Target
- Id of the receiving bot.ItemId
- Id of the item in the inventory chain of the giver.public GiveInventory()
public GiveInventory(GiveInventory original)
original
- Method Detail |
---|
public UnrealId getTarget()
public GiveInventory setTarget(UnrealId Target)
public java.lang.String getItemId()
public GiveInventory setItemId(java.lang.String ItemId)
public java.lang.String toString()
toString
in class CommandMessage
public java.lang.String toHtmlString()
public java.lang.String toMessage()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |