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

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.agent.module.AgentModule<AGENT>
      extended by cz.cuni.amis.pogamut.base.agent.module.SensomotoricModule<UT2004Bot>
          extended by cz.cuni.amis.pogamut.ut2004.bot.command.BotCommands
              extended by cz.cuni.amis.pogamut.ut2004.bot.command.SimpleShooting
All Implemented Interfaces:
IComponent
Direct Known Subclasses:
AdvancedShooting

public class SimpleShooting
extends BotCommands

Class providing Pogamut2 UT2004 simple shooting commands for the bot


Field Summary
 
Fields inherited from class cz.cuni.amis.pogamut.base.agent.module.SensomotoricModule
act, worldView
 
Fields inherited from class cz.cuni.amis.pogamut.base.agent.module.AgentModule
agent, controller, eventBus, log
 
Constructor Summary
SimpleShooting(UT2004Bot agent, java.util.logging.Logger log)
          Constructor.
 
Method Summary
 void shoot()
          Bot will start shooting his current weapon (Issues GB SHOOT command)
 void shoot(ILocated location)
          Bot will start shooting his current weapon to a specified location (Issues GB SHOOT command).
 void shoot(Player target)
          Bot will start shooting with his current weapon at the target provided.
 void shoot(UnrealId target)
          Bot will start shooting with his current weapon at the target provided.
 void stopShoot()
          Bot will stop shooting his current weapon (Issues GB STOPSHOOT command)
 
Methods inherited from class cz.cuni.amis.pogamut.base.agent.module.AgentModule
cleanUp, getComponentId, getLog, getState, initComponentId, isRunning, kill, pause, reset, resume, start, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleShooting

public SimpleShooting(UT2004Bot agent,
                      java.util.logging.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

shoot

public void shoot()
Bot will start shooting his current weapon (Issues GB SHOOT command)

See Also:
stopShoot(), shoot(UnrealId), shoot(ILocated)

shoot

public void shoot(ILocated location)
Bot will start shooting his current weapon to a specified location (Issues GB SHOOT command).

Parameters:
location -
See Also:
stopShoot(), shoot(UnrealId);

shoot

public void shoot(UnrealId target)
Bot will start shooting with his current weapon at the target provided. (Issues GB SHOOT command) Note that the bot will track the target while shooting. If not interrupted by other command that will change bot target or that will change bot focus too much.

Parameters:
target - Target (that should be ILocated) the bot will shoot at. Bot will track the target, but see note above.
See Also:
stopShoot(), shoot()

shoot

public void shoot(Player target)
Bot will start shooting with his current weapon at the target provided. (Issues GB SHOOT command) Note that the bot will track the target while shooting. If not interrupted by other command that will change bot target or that will change bot focus too much.

Parameters:
target - Player the bot wants to shoot at.
See Also:
stopShoot(), shoot()

stopShoot

public void stopShoot()
Bot will stop shooting his current weapon (Issues GB STOPSHOOT command)

See Also:
shoot(), shoot(UnrealId)