cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands
Class AddBot

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands.AddBot

public class AddBot
extends CommandMessage

Representation of the GameBots2004 command ADDBOT. Will add original epic bot to a game. May have issues with team balancing.


Field Summary
protected  java.lang.String Name
          Optional name of the bot.
static java.lang.String PROTOTYPE
          Example how the message looks like - used during parser tests.
protected  java.lang.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  java.lang.String Type
          The class of the added bot - optional.
 
Constructor Summary
AddBot()
          Creates new instance of command AddBot.
AddBot(AddBot original)
          Cloning constructor.
AddBot(java.lang.String Name, Location StartLocation, Rotation StartRotation, java.lang.Integer Skill, java.lang.String Type)
          Creates new instance of command AddBot.
 
Method Summary
 java.lang.String getName()
          Optional name of the bot.
 java.lang.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.
 java.lang.String getType()
          The class of the added bot - optional.
 AddBot setName(java.lang.String Name)
          Optional name of the bot.
 AddBot setSkill(java.lang.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 setType(java.lang.String Type)
          The class of the added bot - optional.
 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

PROTOTYPE

public static final java.lang.String PROTOTYPE
Example how the message looks like - used during parser tests.

See Also:
Constant Field Values

Name

protected java.lang.String Name
Optional name of the bot.


StartLocation

protected Location StartLocation
Optional start location of the bot.


StartRotation

protected Rotation StartRotation
Optional start rotation of the bot.


Skill

protected java.lang.Integer Skill
Skill of the bot - from 1 to 7 (best).


Type

protected java.lang.String Type
The class of the added bot - optional.

Constructor Detail

AddBot

public AddBot(java.lang.String Name,
              Location StartLocation,
              Rotation StartRotation,
              java.lang.Integer Skill,
              java.lang.String Type)
Creates new instance of command AddBot. Will add original epic bot to a game. May have issues with team balancing. Corresponding GameBots message for this command is ADDBOT.

Parameters:
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).
Type - The class of the added bot - optional.

AddBot

public AddBot()
Creates new instance of command AddBot. Will add original epic bot to a game. May have issues with team balancing. Corresponding GameBots message for this command is ADDBOT.

WARNING: this is empty-command constructor, you have to use setters to fill it up with data that should be sent to GameBots2004!


AddBot

public AddBot(AddBot original)
Cloning constructor.

Parameters:
original -
Method Detail

getName

public java.lang.String getName()
Optional name of the bot.


setName

public AddBot setName(java.lang.String Name)
Optional name of the bot.


getStartLocation

public Location getStartLocation()
Optional start location of the bot.


setStartLocation

public AddBot setStartLocation(Location StartLocation)
Optional start location of the bot.


getStartRotation

public Rotation getStartRotation()
Optional start rotation of the bot.


setStartRotation

public AddBot setStartRotation(Rotation StartRotation)
Optional start rotation of the bot.


getSkill

public java.lang.Integer getSkill()
Skill of the bot - from 1 to 7 (best).


setSkill

public AddBot setSkill(java.lang.Integer Skill)
Skill of the bot - from 1 to 7 (best).


getType

public java.lang.String getType()
The class of the added bot - optional.


setType

public AddBot setType(java.lang.String Type)
The class of the added bot - optional.


toString

public java.lang.String toString()
Overrides:
toString in class CommandMessage

toHtmlString

public java.lang.String toHtmlString()

toMessage

public java.lang.String toMessage()