|
||||||||||
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.InfoMessage cz.cuni.amis.pogamut.udk.communication.messages.GBEvent cz.cuni.amis.pogamut.udk.communication.messages.gbinfomessages.TriggerUsed
public class TriggerUsed
Asynchronous message. Sent when the observed player tried to use an object. Corresponding GameBots message is TRGUSED.
Field Summary | |
---|---|
static String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected boolean |
Success
Whether the object was succesfully used |
protected UnrealId |
Target
ID of the actor that was used. |
Constructor Summary | |
---|---|
TriggerUsed()
Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package). |
|
TriggerUsed(boolean Success,
UnrealId Target)
Creates new instance of command TriggerUsed. |
|
TriggerUsed(TriggerUsed original)
Cloning constructor. |
Method Summary | |
---|---|
long |
getSimTime()
|
UnrealId |
getTarget()
ID of the actor that was used. |
boolean |
isSuccess()
Whether the object was succesfully used |
String |
toHtmlString()
|
String |
toString()
|
Methods inherited from class cz.cuni.amis.pogamut.udk.communication.messages.GBEvent |
---|
getWorldEvent |
Methods inherited from class cz.cuni.amis.pogamut.base.communication.messages.InfoMessage |
---|
toJsonLiteral |
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 boolean Success
protected UnrealId Target
Constructor Detail |
---|
public TriggerUsed(boolean Success, UnrealId Target)
Success
- Whether the object was succesfully usedTarget
- ID of the actor that was used.public TriggerUsed(TriggerUsed original)
public TriggerUsed()
Method Detail |
---|
public boolean isSuccess()
public UnrealId getTarget()
public long getSimTime()
getSimTime
in interface IWorldChangeEvent
getSimTime
in interface IWorldEvent
getSimTime
in class GBEvent
public String toString()
toString
in class InfoMessage
public String toHtmlString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |