nl.tudelft.pogamut.ut2004.agent.module.shooting.weapon
Class LigthningGunShooting
java.lang.Object
cz.cuni.amis.pogamut.base.agent.module.AgentModule<AGENT>
cz.cuni.amis.pogamut.base.agent.module.SensorModule<UT2004Bot>
nl.tudelft.pogamut.ut2004.agent.module.shooting.AbstractWeaponShooting
nl.tudelft.pogamut.ut2004.agent.module.shooting.weapon.LigthningGunShooting
- All Implemented Interfaces:
- cz.cuni.amis.pogamut.base.component.IComponent, WeaponShooting
- Direct Known Subclasses:
- SniperRifleShooting
public class LigthningGunShooting
- extends AbstractWeaponShooting
Module to work efficiently with the lightning gun.
The lightning gun is merely a point & click weapon so this module does just
that. As the secondary fire mode merely zooms in, it is not used.
TODO: Sort out effects of secondary fire mode on accuracy.
- Author:
- mpkorstanje
| Fields inherited from class nl.tudelft.pogamut.ut2004.agent.module.shooting.AbstractWeaponShooting |
ABOVE_PLAYER_OFFSET, active, BELOW_PLAYER_OFFSET, endMessageListener, FACING_ANGLE, focus, info, shoot, target, weaponPref, weaponry |
| 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 |
| 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 |
DEFAULT_WEAPON_PREF
protected static final WeaponPref DEFAULT_WEAPON_PREF
LigthningGunShooting
public LigthningGunShooting(UT2004Bot<?,?,?> agent,
AgentInfo info,
ImprovedShooting shoot,
Weaponry weaponry)
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 WeaponPref getDefaultWeaponPref()
- Specified by:
getDefaultWeaponPref in class AbstractWeaponShooting
- Returns:
- the default weapon preference.
Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.