|
||||||||||
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.GiveInventory
public class GiveInventory
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. Corresponding GameBots command is GIVEINV.
Field Summary | |
---|---|
protected String |
ItemId
Id of the item in the inventory chain of the giver. |
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,
String ItemId)
Creates new instance of command GiveInventory. |
Method Summary | |
---|---|
String |
getItemId()
Id of the item in the inventory chain of the giver. |
UnrealId |
getTarget()
Id of the receiving bot. |
GiveInventory |
setItemId(String ItemId)
Id of the item in the inventory chain of the giver. |
GiveInventory |
setTarget(UnrealId Target)
Id of the receiving bot. |
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 Target
protected String ItemId
Constructor Detail |
---|
public GiveInventory(UnrealId Target, 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)
Method Detail |
---|
public UnrealId getTarget()
public GiveInventory setTarget(UnrealId Target)
public String getItemId()
public GiveInventory setItemId(String ItemId)
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 |