|
||||||||||
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.FastTraceResponse
public class FastTraceResponse
Asynchronous message. Response of the FASTTRACE command. Note that trace commands are computationally expensive. Corresponding GameBots message is FTR.
Field Summary | |
---|---|
protected Location |
From
Location from which the ray is emitted. |
protected String |
Id
An Id matching the one sent by client. |
static String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected boolean |
Result
True if it hit something, false if not. |
protected Location |
To
Location to which the ray is sent. |
Constructor Summary | |
---|---|
FastTraceResponse()
Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package). |
|
FastTraceResponse(FastTraceResponse original)
Cloning constructor. |
|
FastTraceResponse(String Id,
Location From,
Location To,
boolean Result)
Creates new instance of command FastTraceResponse. |
Method Summary | |
---|---|
Location |
getFrom()
Location from which the ray is emitted. |
String |
getId()
An Id matching the one sent by client. |
long |
getSimTime()
|
Location |
getTo()
Location to which the ray is sent. |
boolean |
isResult()
True if it hit something, false if not. |
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 String Id
protected Location From
protected Location To
protected boolean Result
Constructor Detail |
---|
public FastTraceResponse(String Id, Location From, Location To, boolean Result)
Id
- An Id matching the one sent by client. Allows bot to match
answer with right query.From
- Location from which the ray is emitted.To
- Location to which the ray is sent.Result
- True if it hit something, false if not.public FastTraceResponse(FastTraceResponse original)
public FastTraceResponse()
Method Detail |
---|
public String getId()
public Location getFrom()
public Location getTo()
public boolean isResult()
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 |