|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.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.ShieldGunShooting
public class ShieldGunShooting
Module to work efficiently with the shield gun.
When the primary mode is given to the weapon preferences the shield gun will simply charge up. It's up to other component to run into someone.
When the secondary mode is requested by weapon preferences the shield gun activate for 1 second when ever it detects that it is taking damage, sees an incoming projectile or sees it's target shooting or sees it's target aiming a hitscan weapon at it. While doing this the bot will aim in the direction of its target, potentially bouncing shock cores and link gun projectiles to it's target.
| Field Summary | |
|---|---|
protected static WeaponPref |
DEFAULT_WEAPON_PREF
Default is the secondary mode. |
protected static int |
INCOMMING_PROJECTILE_MIN_THREAT_DISTANCE
Distance at which incoming projectiles can be considered threatening. |
protected Projectiles |
projectiles
Projectiles modules. |
protected Senses |
senses
Senses module. |
protected static double |
SHIELD_GUN_SEC_BURST_DURATION
Duration in second that the shield gun will fire. |
| 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 |
| Constructor Summary | |
|---|---|
ShieldGunShooting(UT2004Bot<?,?,?> bot,
AgentInfo info,
ImprovedShooting shoot,
Weaponry weaponry,
Projectiles projectiles,
Senses senses)
|
|
| Method Summary | |
|---|---|
protected WeaponPref |
getDefaultWeaponPref()
|
protected void |
shoot()
Shoot will be called after every end message. |
protected void |
shootPrimary()
|
protected void |
shootSecondary()
|
| Methods inherited from class nl.tudelft.pogamut.ut2004.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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final int INCOMMING_PROJECTILE_MIN_THREAT_DISTANCE
protected static final double SHIELD_GUN_SEC_BURST_DURATION
protected static final WeaponPref DEFAULT_WEAPON_PREF
protected Projectiles projectiles
Projectiles modules.
protected Senses senses
| Constructor Detail |
|---|
public ShieldGunShooting(UT2004Bot<?,?,?> bot,
AgentInfo info,
ImprovedShooting shoot,
Weaponry weaponry,
Projectiles projectiles,
Senses senses)
| Method Detail |
|---|
protected void shoot()
AbstractWeaponShootingShoot 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.
shoot in class AbstractWeaponShootingprotected void shootPrimary()
protected void shootSecondary()
protected WeaponPref getDefaultWeaponPref()
getDefaultWeaponPref in class AbstractWeaponShooting
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||