|
|||||||||
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.ut2004.communication.messages.gbinfomessages.TeamChanged
public class TeamChanged
Definition of the event TEAMCHANGE.
Complete message documentation: Aynchronous message. Response of the CHANGETEAM command.
Field Summary | |
---|---|
protected int |
DesiredTeam
This is the team we wanted to change to (0 for red,1 for blue, etc..). |
protected UnrealId |
Id
Sent only for ControlServer connections, so they know which bot changed the team. |
static java.lang.String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected long |
SimTime
|
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()
Parameter-less contructor for the message. |
|
TeamChanged(TeamChanged original)
Cloning constructor from the full message. |
|
TeamChanged(UnrealId Id,
boolean Success,
int DesiredTeam)
Creates new instance of the message TeamChanged. |
Method Summary | |
---|---|
int |
getDesiredTeam()
This is the team we wanted to change to (0 for red,1 for blue, etc..). |
UnrealId |
getId()
Sent only for ControlServer connections, so they know which bot changed the team. |
long |
getSimTime()
Returns the simulation time when the event has occurred. |
boolean |
isSuccess()
If true team change was succesfull (it won't be succesfull if we are changing to a team we already are in). |
protected void |
setSimTime(long SimTime)
Used by Yylex to slip correct time of the object or programmatically. |
java.lang.String |
toHtmlString()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROTOTYPE
protected long SimTime
protected UnrealId Id
protected boolean Success
protected int DesiredTeam
Constructor Detail |
---|
public TeamChanged()
public TeamChanged(UnrealId Id, boolean Success, int DesiredTeam)
Id
- Sent only for ControlServer connections, so they know which bot changed the team.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)
original
- Method Detail |
---|
public long getSimTime()
IWorldEvent
getSimTime
in interface IWorldChangeEvent
getSimTime
in interface IWorldEvent
protected void setSimTime(long SimTime)
public UnrealId getId()
public boolean isSuccess()
public int getDesiredTeam()
public java.lang.String toString()
toString
in class InfoMessage
public java.lang.String toHtmlString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |