|
||||||||||
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.Reachable
public class Reachable
Asynchronous message. A boolean result of a checkreach call. Corresponding GameBots message is RCH.
Field Summary | |
---|---|
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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
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()
|
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 boolean Reachable
protected Location From
Constructor Detail |
---|
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()
Method Detail |
---|
public String getId()
public boolean isReachable()
public Location getFrom()
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 |