|
||||||||||
| 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.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 cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
Target
Id of the receiving bot. |
| Constructor Summary | |
|---|---|
GiveInventory()
Creates new instance of command GiveInventory. |
|
GiveInventory(GiveInventory original)
Cloning constructor. |
|
GiveInventory(cz.cuni.amis.pogamut.unreal.communication.messages.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. |
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
getTarget()
Id of the receiving bot. |
GiveInventory |
setItemId(String ItemId)
Id of the item in the inventory chain of the giver. |
GiveInventory |
setTarget(cz.cuni.amis.pogamut.unreal.communication.messages.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 cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Target
protected String ItemId
| Constructor Detail |
|---|
public GiveInventory(cz.cuni.amis.pogamut.unreal.communication.messages.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 cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getTarget()
public GiveInventory setTarget(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Target)
public String getItemId()
public GiveInventory setItemId(String ItemId)
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 | |||||||||