nl.tudelft.pogamut.unreal.agent.module.shooting.weapon
Class GenericWeaponShooting
java.lang.Object
cz.cuni.amis.pogamut.base.agent.module.AgentModule<AGENT>
cz.cuni.amis.pogamut.base.agent.module.SensorModule<cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004Bot>
nl.tudelft.pogamut.unreal.agent.module.shooting.AbstractWeaponShooting
nl.tudelft.pogamut.unreal.agent.module.shooting.weapon.GenericWeaponShooting
- All Implemented Interfaces:
- cz.cuni.amis.pogamut.base.component.IComponent, WeaponShooting
public class GenericWeaponShooting
- extends AbstractWeaponShooting
Fall back module to handle unknown weapons. Will shoot the primary mode at
visible targets.
- Author:
- mpkorstanje
|
Field Summary |
protected cz.cuni.amis.pogamut.ut2004.agent.module.sensor.WeaponPref |
weaponPref
|
| Fields inherited from class cz.cuni.amis.pogamut.base.agent.module.SensorModule |
worldView |
| Fields inherited from class cz.cuni.amis.pogamut.base.agent.module.AgentModule |
agent, controller, eventBus, log |
|
Constructor Summary |
GenericWeaponShooting(cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004Bot<?,?,?> agent,
cz.cuni.amis.pogamut.ut2004.agent.module.sensor.AgentInfo info,
cz.cuni.amis.pogamut.ut2004.bot.command.ImprovedShooting shoot,
cz.cuni.amis.pogamut.ut2004.agent.module.sensomotoric.Weaponry weaponry,
cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType weapon)
|
|
Method Summary |
protected cz.cuni.amis.pogamut.ut2004.agent.module.sensor.WeaponPref |
getDefaultWeaponPref()
|
protected void |
shoot()
Shoot will be called after every end message. |
| 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 |
weaponPref
protected cz.cuni.amis.pogamut.ut2004.agent.module.sensor.WeaponPref weaponPref
GenericWeaponShooting
public GenericWeaponShooting(cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004Bot<?,?,?> agent,
cz.cuni.amis.pogamut.ut2004.agent.module.sensor.AgentInfo info,
cz.cuni.amis.pogamut.ut2004.bot.command.ImprovedShooting shoot,
cz.cuni.amis.pogamut.ut2004.agent.module.sensomotoric.Weaponry weaponry,
cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType weapon)
shoot
protected void shoot()
- Description copied from class:
AbstractWeaponShooting
Shoot will be called after every end message.
Implementing subclasses should make a best effort attempt to shoot the
given target using the given weapon preference if possible. Subclasses
should take care to note that a target may not always be present. e.g.
target == null.
- Specified by:
shoot in class AbstractWeaponShooting
getDefaultWeaponPref
protected cz.cuni.amis.pogamut.ut2004.agent.module.sensor.WeaponPref getDefaultWeaponPref()
- Specified by:
getDefaultWeaponPref in class AbstractWeaponShooting
- Returns:
- the default weapon preference.
Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.