nl.tudelft.pogamut.ut2004.agent.module.shooting.weapon
Class SniperRifleShooting

Package class diagram package SniperRifleShooting
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.agent.module.AgentModule<AGENT>
      extended by cz.cuni.amis.pogamut.base.agent.module.SensorModule<UT2004Bot>
          extended by nl.tudelft.pogamut.ut2004.agent.module.shooting.AbstractWeaponShooting
              extended by nl.tudelft.pogamut.ut2004.agent.module.shooting.weapon.LigthningGunShooting
                  extended by nl.tudelft.pogamut.ut2004.agent.module.shooting.weapon.SniperRifleShooting
All Implemented Interfaces:
cz.cuni.amis.pogamut.base.component.IComponent, WeaponShooting

public class SniperRifleShooting
extends LigthningGunShooting

Module to work efficiently with the sniper rifle.

The sniper rifle 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

Field Summary
protected static WeaponPref DEFAULT_WEAPON_PREF
           
 
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
SniperRifleShooting(UT2004Bot<?,?,?> agent, AgentInfo info, ImprovedShooting shoot, Weaponry weaponry)
           
 
Method Summary
protected  WeaponPref getDefaultWeaponPref()
           
 
Methods inherited from class nl.tudelft.pogamut.ut2004.agent.module.shooting.weapon.LigthningGunShooting
shoot
 
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

DEFAULT_WEAPON_PREF

protected static final WeaponPref DEFAULT_WEAPON_PREF
Constructor Detail

SniperRifleShooting

public SniperRifleShooting(UT2004Bot<?,?,?> agent,
                           AgentInfo info,
                           ImprovedShooting shoot,
                           Weaponry weaponry)
Method Detail

getDefaultWeaponPref

protected WeaponPref getDefaultWeaponPref()
Overrides:
getDefaultWeaponPref in class LigthningGunShooting
Returns:
the default weapon preference.


Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.