public class FastTraceResponse extends GBEvent implements IWorldEvent, IWorldChangeEvent
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
getWorldEventtoJsonLiteralpublic static final String PROTOTYPE
protected String Id
protected Location From
protected Location To
protected boolean Result
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()
public String getId()
public Location getFrom()
public Location getTo()
public boolean isResult()
public long getSimTime()
getSimTime in interface IWorldChangeEventgetSimTime in interface IWorldEventgetSimTime in class GBEventpublic String toString()
toString in class InfoMessagepublic String toHtmlString()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.