|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.pogamut.base.communication.messages.InfoMessage
cz.cuni.amis.pogamut.usar2004.communication.messages.GBEvent
cz.cuni.amis.pogamut.usar2004.communication.messages.usarinfomessages.NfoMessage
public class NfoMessage
When we connect to USARSim, we can send this command before spawning any robot: GETSTARTPOSES. We will receive a string like this one: NFO {StartPoses 3} {BlueGoal -2.55,-0.00,-0.19 0.00,-0.03,-0.01 MiddleField 0.01,- 0.00,-0.19 0.00,0.00,0.00 YellowGoal 2.57,-0.01,-0.19 0.00,0.00,3.13} The syntax of this string doesn't follow strictly the USARSim standard. NFO message is also issued after connecting to the USARSIM server. And it contains information about the level. Corresponding GameBots message is NFO.
| Field Summary | |
|---|---|
protected String |
GameType
|
protected String |
Level
|
static String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected int |
StartPoseCount
|
protected List<StartPose> |
StartPoses
|
protected double |
TimeLimit
|
| Constructor Summary | |
|---|---|
NfoMessage()
Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package). |
|
NfoMessage(double TimeLimit,
String Level,
String GameType,
int StartPoseCount)
|
|
NfoMessage(NfoMessage original)
Cloning constructor. |
|
| Method Summary | |
|---|---|
String |
getGameType()
Initial NFO message recieved from the server will provide information such as Game Type. |
String |
getLevel()
Initial NFO message recieved from the server will provide information such as Level Name. |
int |
getStartPoseCount()
StartPoseCount is the number of starting positions available. |
List<StartPose> |
getStartPoses()
GETSTARTPOSES will cause receipt of the NFO message with potencial Locations for spawning a robot. |
double |
getTimeLimit()
Initial NFO message recieved from the server will provide information such as Time Limit. |
String |
toHtmlString()
Gets all properties and values to create a HTML formated string; |
String |
toString()
|
| Methods inherited from class cz.cuni.amis.pogamut.usar2004.communication.messages.GBEvent |
|---|
getSimTime, 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 |
| Methods inherited from interface cz.cuni.amis.pogamut.base.communication.worldview.event.IWorldEvent |
|---|
getSimTime |
| Methods inherited from interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldChangeEvent |
|---|
getSimTime |
| Field Detail |
|---|
public static final String PROTOTYPE
protected String GameType
protected String Level
protected double TimeLimit
protected int StartPoseCount
protected List<StartPose> StartPoses
| Constructor Detail |
|---|
public NfoMessage(double TimeLimit,
String Level,
String GameType,
int StartPoseCount)
public NfoMessage(NfoMessage original)
public NfoMessage()
| Method Detail |
|---|
public String getGameType()
public String getLevel()
public double getTimeLimit()
public int getStartPoseCount()
public List<StartPose> getStartPoses()
public String toString()
toString in class cz.cuni.amis.pogamut.base.communication.messages.InfoMessagepublic String toHtmlString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||