|
||||||||||
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.TeamChanged
public class TeamChanged
Aynchronous message. Response of the CHANGETEAM command. Corresponding GameBots message is TEAMCHANGE.
Field Summary | |
---|---|
protected int |
DesiredTeam
This is the team we wanted to change to (0 for red,1 for blue, etc..). |
static String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected boolean |
Success
If true team change was succesfull (it won't be succesfull if we are changing to a team we already are in). |
Constructor Summary | |
---|---|
TeamChanged()
Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package). |
|
TeamChanged(boolean Success,
int DesiredTeam)
Creates new instance of command TeamChanged. |
|
TeamChanged(TeamChanged original)
Cloning constructor. |
Method Summary | |
---|---|
int |
getDesiredTeam()
This is the team we wanted to change to (0 for red,1 for blue, etc..). |
long |
getSimTime()
|
boolean |
isSuccess()
If true team change was succesfull (it won't be succesfull if we are changing to a team we already are in). |
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 boolean Success
protected int DesiredTeam
Constructor Detail |
---|
public TeamChanged(boolean Success, int DesiredTeam)
Success
- If true team change was succesfull (it won't be succesfull if
we are changing to a team we already are in).DesiredTeam
- This is the team we wanted to change to (0 for red,1 for
blue, etc..).public TeamChanged(TeamChanged original)
public TeamChanged()
Method Detail |
---|
public boolean isSuccess()
public int getDesiredTeam()
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 |