cz.cuni.pogamut.Client
Class AgentInitializer

java.lang.Object
  extended by cz.cuni.pogamut.Client.AgentInitializer

public class AgentInitializer
extends java.lang.Object

class used to initialize agent by changing parameters of this class you are modifying the init message sent by body to GB hence modifying your agent accuracy, skin, vulnerability, etc.


Field Summary
private  double accuracy
          how much the bot should be exact - value between 0 and 1
private  java.lang.Boolean autoTrace
          whether to use autotracing or not
private  int botSkillLevel
          skill of the bot, range is 1-7, 1 is lowest skill, 7 is highest skill ... highest skill is default
private  Triple location
          place to spawn bot at for the first time
private  boolean manualSpawn
          if the respawn will be done automaticaly on random place or you will take care about it yourself
private  java.lang.String name
          name of the bot
private  Triple rotation
          rotation bot should have in the first spawn
private  java.lang.String skin
          skin - so far there is a list of supported skins in SkinTypes
private  boolean targetLead
          if the game engine should help bot leading the fire so he will count with the movement of opponent
private  int team
          team - 0 - red, 1 - blue, 2 - green, 3 - gold (approximately)
 
Constructor Summary
AgentInitializer()
           
 
Method Summary
 java.lang.String constructInitMessage()
           
 double getAccuracy()
           
 int getBotSkillLevel()
           
 Triple getLocation()
           
 java.lang.String getName()
           
 Triple getRotation()
           
 java.lang.String getSkin()
           
 int getTeam()
           
 boolean isManualSpawn()
           
 boolean isTargetLead()
           
 void setAccuracy(double accuracy)
           
 void setAutoTrace(boolean b)
           
 void setBotSkillLevel(int botSkillLevel)
          Checks whether the botSkillLevel is 1-7.
 void setLocation(Triple location)
           
 void setManualSpawn(boolean manualSpawn)
           
 void setName(java.lang.String name)
           
 void setRotation(Triple rotation)
           
 void setSkin(java.lang.String skin)
          Specifies bot's appearance.
 void setTargetLead(boolean targetLead)
           
 void setTeam(int team)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private java.lang.String name
name of the bot


team

private int team
team - 0 - red, 1 - blue, 2 - green, 3 - gold (approximately)


manualSpawn

private boolean manualSpawn
if the respawn will be done automaticaly on random place or you will take care about it yourself


location

private Triple location
place to spawn bot at for the first time


rotation

private Triple rotation
rotation bot should have in the first spawn


skin

private java.lang.String skin
skin - so far there is a list of supported skins in SkinTypes


accuracy

private double accuracy
how much the bot should be exact - value between 0 and 1


targetLead

private boolean targetLead
if the game engine should help bot leading the fire so he will count with the movement of opponent


botSkillLevel

private int botSkillLevel
skill of the bot, range is 1-7, 1 is lowest skill, 7 is highest skill ... highest skill is default


autoTrace

private java.lang.Boolean autoTrace
whether to use autotracing or not

Constructor Detail

AgentInitializer

public AgentInitializer()
Method Detail

constructInitMessage

public java.lang.String constructInitMessage()
Returns:
init command which should be sent by the body to GB according to how user changed the fields

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getTeam

public int getTeam()

setTeam

public void setTeam(int team)

isManualSpawn

public boolean isManualSpawn()

setManualSpawn

public void setManualSpawn(boolean manualSpawn)

getLocation

public Triple getLocation()

setLocation

public void setLocation(Triple location)

getRotation

public Triple getRotation()

setRotation

public void setRotation(Triple rotation)

getSkin

public java.lang.String getSkin()

setSkin

public void setSkin(java.lang.String skin)
Specifies bot's appearance. You need to supply package and skin (mesh) name. Example: HumanMaleA.MercMaleA. Find all packages and skins through UnrealEd (Actor browser, search in UT2004/Animations folder). Some native packages to look in: HumanMaleA, HumanFemaleA, Bot, Aliens.

Parameters:
skin - identifier of the skin, eg. HumanMaleA.MercMaleA

getAccuracy

public double getAccuracy()

setAccuracy

public void setAccuracy(double accuracy)

isTargetLead

public boolean isTargetLead()

setTargetLead

public void setTargetLead(boolean targetLead)

getBotSkillLevel

public int getBotSkillLevel()

setBotSkillLevel

public void setBotSkillLevel(int botSkillLevel)
Checks whether the botSkillLevel is 1-7.

Parameters:
botSkillLevel -

setAutoTrace

public void setAutoTrace(boolean b)