public class ChangeTeam
extends cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
Modifier and Type | Field and Description |
---|---|
protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
Id
Id of the target bot (won't be parsed if sent to bot
connection).
|
static String |
PROTOTYPE
Example how the message looks like - used during parser tests.
|
protected Integer |
Team
This is the team we want to change to (0 for red, 1 for
blue, etc.).
|
Constructor and Description |
---|
ChangeTeam()
Creates new instance of command ChangeTeam.
|
ChangeTeam(ChangeTeam original)
Cloning constructor.
|
ChangeTeam(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id,
Integer Team)
Creates new instance of command ChangeTeam.
|
Modifier and Type | Method and Description |
---|---|
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
getId()
Id of the target bot (won't be parsed if sent to bot
connection).
|
Integer |
getTeam()
This is the team we want to change to (0 for red, 1 for
blue, etc.).
|
ChangeTeam |
setId(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id)
Id of the target bot (won't be parsed if sent to bot
connection).
|
ChangeTeam |
setTeam(Integer Team)
This is the team we want to change to (0 for red, 1 for
blue, etc.).
|
String |
toHtmlString() |
String |
toMessage() |
String |
toString() |
public static final String PROTOTYPE
protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id
protected Integer Team
public ChangeTeam(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id, 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
- public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()
public ChangeTeam setId(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id)
public Integer getTeam()
public ChangeTeam setTeam(Integer Team)
public String toString()
toString
in class cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
public String toHtmlString()
public String toMessage()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.