cz.cuni.amis.pogamut.ut2004.examples.botwithparams
Class CustomBotParameters

Package class diagram package CustomBotParameters
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.agent.params.impl.AgentParameters
      extended by cz.cuni.amis.pogamut.base.agent.params.impl.RemoteAgentParameters
          extended by cz.cuni.amis.pogamut.ut2004.agent.params.UT2004AgentParameters
              extended by cz.cuni.amis.pogamut.ut2004.bot.params.UT2004BotParameters
                  extended by cz.cuni.amis.pogamut.ut2004.examples.botwithparams.CustomBotParameters
All Implemented Interfaces:
cz.cuni.amis.pogamut.base.agent.params.IAgentParameters, cz.cuni.amis.pogamut.base.agent.params.IRemoteAgentParameters

public class CustomBotParameters
extends UT2004BotParameters

This class defines additional parameters you want your bot to have. Params such "custom name", "custom skin", "aggressiveness", "weapon preferences", "bot skill level", "team", etc. that you might need to customize for your bot.

There are three things you should do when defining params.

  1. define private fields that will hold your parameters' values
  2. define getters for your params
  3. define setters for your params

Author:
Jimmy

Constructor Summary
CustomBotParameters()
           
 
Method Summary
 String getBotSkin()
          This returns the skin of the bot to be used.
 String getName()
          This returns the name of the bot to be used.
 int getSkillLevel()
          This returns the desired skill level of the bot to be used.
 boolean isJumping()
          Whether the bot should be jumping.
 boolean isRotating()
          Whether the bot should be rotating.
 CustomBotParameters setBotSkin(String botSkin)
          Sets the skin to be used for the bot.
 CustomBotParameters setJumping(boolean jumping)
          Sets 'jumping behavior'.
 CustomBotParameters setName(String name)
          Sets the name for the bot.
 CustomBotParameters setRotating(boolean rotating)
          Sets 'rotating behavior'.
 CustomBotParameters setSkillLevel(int skillLevel)
          Sets desired skill level of the bot.
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.bot.params.UT2004BotParameters
assignDefaults, getInitialLocation, getInitialRotation, getTeam, setAgentId, setInitialLocation, setInitialRotation, 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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface cz.cuni.amis.pogamut.base.agent.params.IAgentParameters
getAgentId
 

Constructor Detail

CustomBotParameters

public CustomBotParameters()
Method Detail

getBotSkin

public String getBotSkin()
This returns the skin of the bot to be used.

Returns:

setBotSkin

public CustomBotParameters setBotSkin(String botSkin)
Sets the skin to be used for the bot. Notice the return value - we will return the very same object so you will be able to chain your setters, see BotWithParams.main(String[]).

Parameters:
botSkin -
Returns:

getName

public String getName()
This returns the name of the bot to be used.

Returns:

setName

public CustomBotParameters setName(String name)
Sets the name for the bot. Notice the return value - we will return the very same object so you will be able to chain your setters, see BotWithParams.main(String[]).

Parameters:
name -
Returns:

getSkillLevel

public int getSkillLevel()
This returns the desired skill level of the bot to be used.

Returns:

setSkillLevel

public CustomBotParameters setSkillLevel(int skillLevel)
Sets desired skill level of the bot. Notice the return value - we will return the very same object so you will be able to chain your setters, see BotWithParams.main(String[]).

Parameters:
skillLevel -
Returns:

isJumping

public boolean isJumping()
Whether the bot should be jumping.

Returns:

setJumping

public CustomBotParameters setJumping(boolean jumping)
Sets 'jumping behavior'. Notice the return value - we will return the very same object so you will be able to chain your setters, see BotWithParams.main(String[]).

Parameters:
jumping -

isRotating

public boolean isRotating()
Whether the bot should be rotating.

Returns:

setRotating

public CustomBotParameters setRotating(boolean rotating)
Sets 'rotating behavior'. Notice the return value - we will return the very same object so you will be able to chain your setters, see BotWithParams.main(String[]).

Parameters:
rotating -
Returns:


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