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

Package class diagram package AddBot
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
      extended by cz.cuni.amis.pogamut.udk.communication.messages.gbcommands.AddBot

public class AddBot
extends CommandMessage

Will add original epic bot to a game. May have issues with team. balancing. Corresponding GameBots command is ADDBOT.


Field Summary
protected  String Name
          Optional name of the bot.
protected  int 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  String Type
          The class of the added bot - optional.
 
Constructor Summary
AddBot()
          Creates new instance of command AddBot.
AddBot(AddBot original)
          Cloning constructor.
AddBot(String Name, Location StartLocation, Rotation StartRotation, int Skill, String Type)
          Creates new instance of command AddBot.
 
Method Summary
 String getName()
          Optional name of the bot.
 int 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.
 String getType()
          The class of the added bot - optional.
 AddBot setName(String Name)
          Optional name of the bot.
 AddBot setSkill(int 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(String Type)
          The class of the added bot - optional.
 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

Name

protected 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 int Skill
Skill of the bot - from 1 to 7 (best).


Type

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

Constructor Detail

AddBot

public AddBot(String Name,
              Location StartLocation,
              Rotation StartRotation,
              int Skill,
              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!


AddBot

public AddBot(AddBot original)
Cloning constructor.

Method Detail

getName

public String getName()
Optional name of the bot.


setName

public AddBot setName(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 int getSkill()
Skill of the bot - from 1 to 7 (best).


setSkill

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


getType

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


setType

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


toString

public String toString()
Overrides:
toString in class CommandMessage

toHtmlString

public String toHtmlString()

toMessage

public String toMessage()


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.