public class BotParameters extends Parameters implements cz.cuni.amis.pogamut.base.component.IComponent
Key#BOTNAMEKey.LEADTARGETKey.LOGLEVELKey.BOTSERVERKey.SKILLKey.SKINKey.TEAMKey.STARTLOCATIONKey.STARTROTATIONBOT_SERVER_PORT, CONTROL_SERVER_PORT, DEFAULT_NAME, LOCAL_HOST, log| Constructor and Description |
|---|
BotParameters(cz.cuni.amis.pogamut.base.utils.logging.IAgentLogger logger) |
BotParameters(Map<String,eis.iilang.Parameter> parameters,
cz.cuni.amis.pogamut.base.utils.logging.IAgentLogger logger) |
BotParameters(Parameters defaults,
cz.cuni.amis.pogamut.base.utils.logging.IAgentLogger logger) |
| Modifier and Type | Method and Description |
|---|---|
void |
assignDefaults(cz.cuni.amis.pogamut.base.agent.params.IAgentParameters defaults) |
cz.cuni.amis.utils.token.IToken |
getComponentId() |
static BotParameters |
getDefaults(cz.cuni.amis.pogamut.base.utils.logging.IAgentLogger logger) |
Level |
getLogLevel() |
int |
getSkill() |
Skin |
getSkin() |
cz.cuni.amis.pogamut.base3d.worldview.object.Location |
getStartLocation() |
cz.cuni.amis.pogamut.base3d.worldview.object.Rotation |
getStartRotation() |
protected void |
setKey(Key key,
eis.iilang.Parameter value) |
BotParameters |
setLogLevel(Level level) |
BotParameters |
setShouldLeadTarget(boolean shouldLeadTarget) |
BotParameters |
setSkill(int skill)
Sets the bots skill between 0..7.
|
BotParameters |
setSkin(Skin skin) |
BotParameters |
setStartLocation(cz.cuni.amis.pogamut.base3d.worldview.object.Location location) |
BotParameters |
setStartRotation(cz.cuni.amis.pogamut.base3d.worldview.object.Rotation rotation) |
BotParameters |
setTeam(Team team)
Sets the bots preferred team.
|
Boolean |
shouldLeadTarget() |
String |
toString() |
setAgentId, setAgentId, setWorldAddress, setWorldAddressgetInitialLocation, getInitialRotation, getTeam, setInitialLocation, setInitialRotation, setTeamgetWorldAddresspublic BotParameters(cz.cuni.amis.pogamut.base.utils.logging.IAgentLogger logger)
public BotParameters(Map<String,eis.iilang.Parameter> parameters, cz.cuni.amis.pogamut.base.utils.logging.IAgentLogger logger) throws UnrealEnvironmentException
UnrealEnvironmentExceptionpublic BotParameters(Parameters defaults, cz.cuni.amis.pogamut.base.utils.logging.IAgentLogger logger)
public void assignDefaults(cz.cuni.amis.pogamut.base.agent.params.IAgentParameters defaults)
assignDefaults in interface cz.cuni.amis.pogamut.base.agent.params.IAgentParametersassignDefaults in class Parameterspublic cz.cuni.amis.utils.token.IToken getComponentId()
getComponentId in interface cz.cuni.amis.pogamut.base.component.IComponentpublic Level getLogLevel()
public int getSkill()
public Skin getSkin()
public BotParameters setLogLevel(Level level)
public BotParameters setShouldLeadTarget(boolean shouldLeadTarget)
public BotParameters setSkill(int skill)
skill - an integer in the range 0..7public BotParameters setSkin(Skin skin)
public BotParameters setTeam(Team team)
team - public BotParameters setStartLocation(cz.cuni.amis.pogamut.base3d.worldview.object.Location location)
public BotParameters setStartRotation(cz.cuni.amis.pogamut.base3d.worldview.object.Rotation rotation)
public Boolean shouldLeadTarget()
public cz.cuni.amis.pogamut.base3d.worldview.object.Location getStartLocation()
protected void setKey(Key key, eis.iilang.Parameter value) throws nl.tudelft.goal.EIS2Java.exception.TranslationException
setKey in class Parametersnl.tudelft.goal.EIS2Java.exception.TranslationExceptionpublic static BotParameters getDefaults(cz.cuni.amis.pogamut.base.utils.logging.IAgentLogger logger)
public cz.cuni.amis.pogamut.base3d.worldview.object.Rotation getStartRotation()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.