nl.tudelft.goal.unreal.messages
Class BotParameters
java.lang.Object
cz.cuni.amis.pogamut.base.agent.params.impl.AgentParameters
cz.cuni.amis.pogamut.base.agent.params.impl.RemoteAgentParameters
cz.cuni.amis.pogamut.ut2004.agent.params.UT2004AgentParameters
cz.cuni.amis.pogamut.ut2004.bot.params.UT2004BotParameters
nl.tudelft.goal.unreal.messages.Parameters
nl.tudelft.goal.unreal.messages.BotParameters
- All Implemented Interfaces:
- cz.cuni.amis.pogamut.base.agent.params.IAgentParameters, cz.cuni.amis.pogamut.base.agent.params.IRemoteAgentParameters
public class BotParameters
- extends Parameters
Holds parameters specific for the bot.
Also provides functionality to assign defaults to parameters that have not
been assigned.
- Author:
- M.P. Korstanje
| Methods inherited from class cz.cuni.amis.pogamut.ut2004.bot.params.UT2004BotParameters |
getInitialLocation, getInitialRotation, getTeam, setAgentId, setTeam, setWorldAddress |
| Methods inherited from class cz.cuni.amis.pogamut.base.agent.params.impl.RemoteAgentParameters |
getWorldAddress |
| Methods inherited from class cz.cuni.amis.pogamut.base.agent.params.impl.AgentParameters |
getAgentId |
| Methods inherited from interface cz.cuni.amis.pogamut.base.agent.params.IAgentParameters |
getAgentId |
BotParameters
public BotParameters()
assignDefaults
public void assignDefaults(cz.cuni.amis.pogamut.base.agent.params.IAgentParameters defaults)
- Specified by:
assignDefaults in interface cz.cuni.amis.pogamut.base.agent.params.IAgentParameters- Overrides:
assignDefaults in class cz.cuni.amis.pogamut.ut2004.bot.params.UT2004BotParameters
getLogLevel
public Level getLogLevel()
getSkill
public int getSkill()
getSkin
public nl.tudelft.goal.ut2004.util.Skin getSkin()
setLogLevel
public BotParameters setLogLevel(Level level)
setShouldLeadTarget
public BotParameters setShouldLeadTarget(boolean shouldLeadTarget)
setSkill
public BotParameters setSkill(int skill)
- Sets the bots skill between 0..7. The bots skill only influences the bots
accuracy. Values outside the valid range are clamped.
- Parameters:
skill - an integer in the range 0..7
setSkin
public BotParameters setSkin(nl.tudelft.goal.ut2004.util.Skin skin)
setTeam
public BotParameters setTeam(nl.tudelft.goal.ut2004.util.Team team)
- Sets the bots preferred team. Typically teams are either 0 or 1.
- Parameters:
team -
setInitialLocation
public BotParameters setInitialLocation(cz.cuni.amis.pogamut.base3d.worldview.object.Location location)
- Overrides:
setInitialLocation in class cz.cuni.amis.pogamut.ut2004.bot.params.UT2004BotParameters
setInitialRotation
public BotParameters setInitialRotation(cz.cuni.amis.pogamut.base3d.worldview.object.Rotation rotation)
- Overrides:
setInitialRotation in class cz.cuni.amis.pogamut.ut2004.bot.params.UT2004BotParameters
shouldLeadTarget
public Boolean shouldLeadTarget()
toString
public String toString()
- Overrides:
toString in class Object
setAgentId
public cz.cuni.amis.pogamut.ut2004.bot.params.UT2004BotParameters setAgentId(String agentName)
getDefaults
public static BotParameters getDefaults()
Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.