cz.cuni.amis.pogamut.ut2004.bot.command
Class CompleteBotCommandsWrapper

Package class diagram package CompleteBotCommandsWrapper
java.lang.Object
  extended by cz.cuni.amis.pogamut.ut2004.bot.command.CompleteBotCommandsWrapper

public class CompleteBotCommandsWrapper
extends Object

Creates and wraps all available command modules. These command modules contains documented methods that wraps Pogamut commands. For example simple locomotion provides methods for basic bot movement in the environment.

It is designed to be initialized inside IUT2004BotController.prepareBot(UT2004Bot) method call and may be used since since the first IUT2004BotController.botFirstSpawn(cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.GameInfo, ConfigChange, InitedMessage, Self) is called.

Author:
Knight

Constructor Summary
CompleteBotCommandsWrapper(UT2004Bot agent)
          Constructor.
CompleteBotCommandsWrapper(UT2004Bot agent, Weaponry weaponry, Logger log)
          Constructor.
 
Method Summary
 Action getAction()
          Returns cz.cuni.amis.pogamut.ut2004.bot.commands.Action command module.
 Communication getCommunication()
          Returns cz.cuni.amis.pogamut.ut2004.bot.commands.Communication command module.
 ConfigureCommands getConfigureCommands()
          Returns cz.cuni.amis.pogamut.ut2004.bot.commands.ConfigureCommands command module.
 ImprovedShooting getImprovedShooting()
          Returns ImprovedShooting.
 AdvancedLocomotion getLocomotion()
          Returns cz.cuni.amis.pogamut.ut2004.bot.commands.AdvancedLocomotion command module.
 Logger getLog()
           
 AdvancedShooting getShooting()
          Returns cz.cuni.amis.pogamut.ut2004.bot.commands.AdvancedShooting command module.
 SimpleRayCasting getSimpleRayCasting()
          Returns cz.cuni.amis.pogamut.ut2004.bot.commands.SimpleRayCasting command module.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompleteBotCommandsWrapper

public CompleteBotCommandsWrapper(UT2004Bot agent)
Constructor. Setups the command module based on given agent.

Parameters:
agent - AbstractUT2004Bot we will send commands for

CompleteBotCommandsWrapper

public CompleteBotCommandsWrapper(UT2004Bot agent,
                                  Weaponry weaponry,
                                  Logger log)
Constructor. Setups the command module based on given agent and logger.

Parameters:
agent - AbstractUT2004Bot we will send commands for
log - Logger to be used for logging runtime/debug info.
Method Detail

getAction

public Action getAction()
Returns cz.cuni.amis.pogamut.ut2004.bot.commands.Action command module.

Returns:
action command module

getLocomotion

public AdvancedLocomotion getLocomotion()
Returns cz.cuni.amis.pogamut.ut2004.bot.commands.AdvancedLocomotion command module.

Returns:
advanced locomotion command module

getShooting

public AdvancedShooting getShooting()
Returns cz.cuni.amis.pogamut.ut2004.bot.commands.AdvancedShooting command module.

Returns:
advanced shooting command module

getCommunication

public Communication getCommunication()
Returns cz.cuni.amis.pogamut.ut2004.bot.commands.Communication command module.

Returns:
communication command module

getConfigureCommands

public ConfigureCommands getConfigureCommands()
Returns cz.cuni.amis.pogamut.ut2004.bot.commands.ConfigureCommands command module.

Returns:
configure commands command module

getSimpleRayCasting

public SimpleRayCasting getSimpleRayCasting()
Returns cz.cuni.amis.pogamut.ut2004.bot.commands.SimpleRayCasting command module.

Returns:
simple ray casting command module

getLog

public Logger getLog()

getImprovedShooting

public ImprovedShooting getImprovedShooting()
Returns ImprovedShooting.

Returns:


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