|
||||||||||
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.CommandMessage
cz.cuni.amis.pogamut.udk.communication.messages.gbcommands.ChangeTeam
public class 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). Corresponding GameBots command is CHANGETEAM.
Field Summary | |
---|---|
protected UnrealId |
Id
Id of the target bot (won't be parsed if sent to bot connection). |
protected int |
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,
int 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). |
int |
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(int Team)
This is the team we want to change to (0 for red, 1 for blue, etc.). |
String |
toHtmlString()
|
String |
toMessage()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected UnrealId Id
protected int Team
Constructor Detail |
---|
public ChangeTeam(UnrealId Id, int 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)
Method Detail |
---|
public UnrealId getId()
public ChangeTeam setId(UnrealId Id)
public int getTeam()
public ChangeTeam setTeam(int Team)
public String toString()
toString
in class CommandMessage
public String toHtmlString()
public String toMessage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |