nl.tudelft.pogamut.ut2004.agent.module.shooting.weapon
Class AssaultRifleShooting
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.ut2004.agent.module.shooting.weapon.AssaultRifleShooting
- All Implemented Interfaces:
- cz.cuni.amis.pogamut.base.component.IComponent, nl.tudelft.pogamut.unreal.agent.module.shooting.WeaponShooting
public class AssaultRifleShooting
- extends nl.tudelft.pogamut.unreal.agent.module.shooting.AbstractWeaponShooting
| Fields inherited from class nl.tudelft.pogamut.unreal.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 |
|
Constructor Summary |
AssaultRifleShooting(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)
|
|
Method Summary |
protected cz.cuni.amis.pogamut.ut2004.agent.module.sensor.WeaponPref |
getDefaultWeaponPref()
|
protected void |
chargeSecondary()
Starts shooting secondary mode. |
protected void |
shoot()
|
protected void |
shootPrimary(cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Player player,
boolean facing,
boolean safe)
Shoots primary when it is safe to do so. |
protected void |
shootSecondary(cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Player player,
boolean facing,
boolean safe)
Shoots a visible player we are facing with the primary mode, otherwise
charges up using secondary. |
protected void |
shootTarget(cz.cuni.amis.pogamut.base3d.worldview.object.ILocated target,
boolean facing,
boolean safe)
Shoot the target, if we are facing it and is safe to do so. |
| Methods inherited from class nl.tudelft.pogamut.unreal.agent.module.shooting.AbstractWeaponShooting |
getFocus, getWeaponType, hasTarget, isActive, isWeaponReady, setFocus, shoot, stopShoot |
| 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 |
ASSAULT_RIFLE_PRIMARY
protected static final cz.cuni.amis.pogamut.ut2004.agent.module.sensor.WeaponPref ASSAULT_RIFLE_PRIMARY
ASSAULT_RIFLE_SEC_SPLASH_RADIUS
protected static final double ASSAULT_RIFLE_SEC_SPLASH_RADIUS
- See Also:
- Constant Field Values
AssaultRifleShooting
public AssaultRifleShooting(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)
shoot
protected void shoot()
- Specified by:
shoot in class nl.tudelft.pogamut.unreal.agent.module.shooting.AbstractWeaponShooting
shootTarget
protected void shootTarget(cz.cuni.amis.pogamut.base3d.worldview.object.ILocated target,
boolean facing,
boolean safe)
- Shoot the target, if we are facing it and is safe to do so. Won't blow
secondary charge if it not safe to do so.
- Parameters:
target - facing -
chargeSecondary
protected void chargeSecondary()
- Starts shooting secondary mode.
shootSecondary
protected void shootSecondary(cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Player player,
boolean facing,
boolean safe)
- Shoots a visible player we are facing with the primary mode, otherwise
charges up using secondary.
- Parameters:
player - facing -
shootPrimary
protected void shootPrimary(cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Player player,
boolean facing,
boolean safe)
- Shoots primary when it is safe to do so. If secondary was previously
shooting it won't blow the charge prematurely.
- Parameters:
player - facing -
getDefaultWeaponPref
protected cz.cuni.amis.pogamut.ut2004.agent.module.sensor.WeaponPref getDefaultWeaponPref()
- Specified by:
getDefaultWeaponPref in class nl.tudelft.pogamut.unreal.agent.module.shooting.AbstractWeaponShooting
Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.