public class Reachable extends GBEvent implements IWorldEvent, IWorldChangeEvent
| Modifier and Type | Field and Description |
|---|---|
protected Location |
From
Exact location of bot at time of check.
|
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 |
Reachable
True if the bot can run here directly, false otherwise.
|
| Constructor and Description |
|---|
Reachable()
Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package).
|
Reachable(Reachable original)
Cloning constructor.
|
Reachable(String Id,
boolean Reachable,
Location From)
Creates new instance of command Reachable.
|
| Modifier and Type | Method and Description |
|---|---|
Location |
getFrom()
Exact location of bot at time of check.
|
String |
getId()
An Id matching the one sent by client.
|
long |
getSimTime() |
boolean |
isReachable()
True if the bot can run here directly, false otherwise.
|
String |
toHtmlString() |
String |
toString() |
getWorldEventtoJsonLiteralpublic static final String PROTOTYPE
protected String Id
protected boolean Reachable
protected Location From
public Reachable(String Id, boolean Reachable, Location From)
Id - An Id matching the one sent by client. Allows bot to match
answer with right querry.Reachable - True if the bot can run here directly, false otherwise.From - Exact location of bot at time of check.public Reachable(Reachable original)
public Reachable()
public String getId()
public boolean isReachable()
public Location getFrom()
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.