|
|||||||||
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.CommandMessage cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands.ChangeTeam
public class ChangeTeam
Representation of the GameBots2004 command CHANGETEAM. Command for changing the bot team. Responds with TEAMCHANGE message. This command can be issued also by bot on the bot itself (in this case Id attribute is not parsed).
Field Summary | |
---|---|
protected UnrealId |
Id
Id of the target bot (won't be parsed if sent to bot connection). |
static java.lang.String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected java.lang.Integer |
Team
This is the team we want to change to (0 for red, 1 for blue, etc.). |
Constructor Summary | |
---|---|
ChangeTeam()
Creates new instance of command ChangeTeam. |
|
ChangeTeam(ChangeTeam original)
Cloning constructor. |
|
ChangeTeam(UnrealId Id,
java.lang.Integer Team)
Creates new instance of command ChangeTeam. |
Method Summary | |
---|---|
UnrealId |
getId()
Id of the target bot (won't be parsed if sent to bot connection). |
java.lang.Integer |
getTeam()
This is the team we want to change to (0 for red, 1 for blue, etc.). |
ChangeTeam |
setId(UnrealId Id)
Id of the target bot (won't be parsed if sent to bot connection). |
ChangeTeam |
setTeam(java.lang.Integer Team)
This is the team we want to change to (0 for red, 1 for blue, etc.). |
java.lang.String |
toHtmlString()
|
java.lang.String |
toMessage()
|
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 UnrealId Id
protected java.lang.Integer Team
Constructor Detail |
---|
public ChangeTeam(UnrealId Id, java.lang.Integer Team)
Id
- Id of the target bot (won't be parsed if sent to bot
connection).Team
- This is the team we want to change to (0 for red, 1 for
blue, etc.).public ChangeTeam()
public ChangeTeam(ChangeTeam original)
original
- Method Detail |
---|
public UnrealId getId()
public ChangeTeam setId(UnrealId Id)
public java.lang.Integer getTeam()
public ChangeTeam setTeam(java.lang.Integer Team)
public java.lang.String toString()
toString
in class CommandMessage
public java.lang.String toHtmlString()
public java.lang.String toMessage()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |