public class AddBot extends CommandMessage
| Modifier and Type | Field and Description |
|---|---|
protected String |
Name
Optional name of the bot.
|
static String |
PROTOTYPE
Example how the message looks like - used during parser tests.
|
protected Integer |
Skill
Skill of the bot - from 1 to 7 (best).
|
protected Location |
StartLocation
Optional start location of the bot.
|
protected Rotation |
StartRotation
Optional start rotation of the bot.
|
protected Integer |
Team
Desired team of the of the bot (0 red, 1 blue).
|
protected String |
Type
The class of the added bot - optional.
|
| Constructor and Description |
|---|
AddBot()
Creates new instance of command AddBot.
|
AddBot(AddBot original)
Cloning constructor.
|
AddBot(String Name,
Location StartLocation,
Rotation StartRotation,
Integer Skill,
Integer Team,
String Type)
Creates new instance of command AddBot.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Optional name of the bot.
|
Integer |
getSkill()
Skill of the bot - from 1 to 7 (best).
|
Location |
getStartLocation()
Optional start location of the bot.
|
Rotation |
getStartRotation()
Optional start rotation of the bot.
|
Integer |
getTeam()
Desired team of the of the bot (0 red, 1 blue).
|
String |
getType()
The class of the added bot - optional.
|
AddBot |
setName(String Name)
Optional name of the bot.
|
AddBot |
setSkill(Integer Skill)
Skill of the bot - from 1 to 7 (best).
|
AddBot |
setStartLocation(Location StartLocation)
Optional start location of the bot.
|
AddBot |
setStartRotation(Rotation StartRotation)
Optional start rotation of the bot.
|
AddBot |
setTeam(Integer Team)
Desired team of the of the bot (0 red, 1 blue).
|
AddBot |
setType(String Type)
The class of the added bot - optional.
|
String |
toHtmlString() |
String |
toMessage() |
String |
toString() |
public static final String PROTOTYPE
protected String Name
protected Location StartLocation
protected Rotation StartRotation
protected Integer Skill
protected Integer Team
protected String Type
public AddBot(String Name, Location StartLocation, Rotation StartRotation, Integer Skill, Integer Team, String Type)
Name - Optional name of the bot.StartLocation - Optional start location of the bot.StartRotation - Optional start rotation of the bot.Skill - Skill of the bot - from 1 to 7 (best).Team - Desired team of the of the bot (0 red, 1 blue).Type - The class of the added bot - optional.public AddBot()
public AddBot(AddBot original)
original - public String getName()
public Location getStartLocation()
public AddBot setStartLocation(Location StartLocation)
public Rotation getStartRotation()
public AddBot setStartRotation(Rotation StartRotation)
public Integer getSkill()
public Integer getTeam()
public String getType()
public String toString()
toString in class CommandMessagepublic String toHtmlString()
public String toMessage()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.