|
||||||||||
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.InfoMessage
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.GiveItemResult
public class GiveItemResult
Definition of the event GIVERES.
Complete message documentation: Aynchronous message. Response to GIVE command. Here we get the information about the result of our GIVE command.
Field Summary | |
---|---|
protected UnrealId |
ItemId
If the command was a success then here we receive Id of the item that was given to bot. |
protected String |
ItemType
Class of the item we wanted to give to the bot. |
static String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected String |
Reason
String reason why the give command was or wasn't successful. |
protected Boolean |
Result
Boolean result containing whether the give command was successful. |
protected long |
SimTime
|
protected UnrealId |
TargetId
An Id of the bot we tried to send item to. |
Constructor Summary | |
---|---|
GiveItemResult()
Parameter-less contructor for the message. |
|
GiveItemResult(GiveItemResult original)
Cloning constructor from the full message. |
|
GiveItemResult(UnrealId TargetId,
UnrealId ItemId,
String ItemType,
Boolean Result,
String Reason)
Creates new instance of the message GiveItemResult. |
Method Summary | |
---|---|
UnrealId |
getItemId()
If the command was a success then here we receive Id of the item that was given to bot. |
String |
getItemType()
Class of the item we wanted to give to the bot. |
String |
getReason()
String reason why the give command was or wasn't successful. |
long |
getSimTime()
Simulation time in MILLI SECONDS !!! |
UnrealId |
getTargetId()
An Id of the bot we tried to send item to. |
Boolean |
isResult()
Boolean result containing whether the give command was successful. |
protected void |
setSimTime(long SimTime)
Used by Yylex to slip correct time of the object or programmatically. |
String |
toHtmlString()
|
String |
toJsonLiteral()
|
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 long SimTime
protected UnrealId TargetId
protected UnrealId ItemId
protected String ItemType
protected Boolean Result
protected String Reason
Constructor Detail |
---|
public GiveItemResult()
public GiveItemResult(UnrealId TargetId, UnrealId ItemId, String ItemType, Boolean Result, String Reason)
TargetId
- An Id of the bot we tried to send item to.ItemId
- If the command was a success then here we receive Id of the item that was given to bot.ItemType
- Class of the item we wanted to give to the bot.Result
- Boolean result containing whether the give command was successful.Reason
- String reason why the give command was or wasn't successful. Can be BOT_NOT_FOUND_OR_BOT_PAWN_NONE, MAX_DISTANCE_EXCEEDED, WRONG_ITEM_TYPE and SUCCESS.public GiveItemResult(GiveItemResult original)
original
- Method Detail |
---|
public long getSimTime()
getSimTime
in interface IWorldChangeEvent
getSimTime
in interface IWorldEvent
protected void setSimTime(long SimTime)
public UnrealId getTargetId()
public UnrealId getItemId()
public String getItemType()
public Boolean isResult()
public String getReason()
public String toString()
toString
in class InfoMessage
public String toHtmlString()
public String toJsonLiteral()
toJsonLiteral
in class InfoMessage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |