public class NfoMessage extends GBEvent implements cz.cuni.amis.pogamut.base.communication.worldview.event.IWorldEvent, cz.cuni.amis.pogamut.base.communication.translator.event.IWorldChangeEvent
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
getSimTime, getWorldEventtoJsonLiteralclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final String PROTOTYPE
protected String GameType
protected String Level
protected double TimeLimit
protected int StartPoseCount
public NfoMessage(NfoMessage original)
public NfoMessage()
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()
Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.