|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.pogamut.Client.AgentInitializer
public class AgentInitializer
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 |
---|
private java.lang.String name
private int team
private boolean manualSpawn
private Triple location
private Triple rotation
private java.lang.String skin
private double accuracy
private boolean targetLead
private int botSkillLevel
private java.lang.Boolean autoTrace
Constructor Detail |
---|
public AgentInitializer()
Method Detail |
---|
public java.lang.String constructInitMessage()
public java.lang.String getName()
public void setName(java.lang.String name)
public int getTeam()
public void setTeam(int team)
public boolean isManualSpawn()
public void setManualSpawn(boolean manualSpawn)
public Triple getLocation()
public void setLocation(Triple location)
public Triple getRotation()
public void setRotation(Triple rotation)
public java.lang.String getSkin()
public void setSkin(java.lang.String skin)
skin
- identifier of the skin, eg. HumanMaleA.MercMaleApublic double getAccuracy()
public void setAccuracy(double accuracy)
public boolean isTargetLead()
public void setTargetLead(boolean targetLead)
public int getBotSkillLevel()
public void setBotSkillLevel(int botSkillLevel)
botSkillLevel
- public void setAutoTrace(boolean b)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |