View Javadoc

1   package nl.tudelft.pogamut.ut2004.agent.module.shooting.weapon;
2   
3   import cz.cuni.amis.pogamut.ut2004.agent.module.sensomotoric.Weaponry;
4   import cz.cuni.amis.pogamut.ut2004.agent.module.sensor.AgentInfo;
5   import cz.cuni.amis.pogamut.ut2004.agent.module.sensor.WeaponPref;
6   import cz.cuni.amis.pogamut.ut2004.bot.command.ImprovedShooting;
7   import cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004Bot;
8   import cz.cuni.amis.pogamut.ut2004.communication.messages.UT2004ItemType;
9   
10  /**
11   *
12   * <p>
13   * Module to work efficiently with the sniper rifle.
14   * </p>
15   * 
16   * <p>
17   * The sniper rifle is merely a point & click weapon so this module does just
18   * that. As the secondary fire mode merely zooms in, it is not used.
19   * 
20   * TODO: Sort out effects of secondary fire mode on accuracy.
21   * </p>
22   * 
23   * @author mpkorstanje
24   * 
25   */
26  public class SniperRifleShooting extends LigthningGunShooting {
27  
28  	protected static final WeaponPref DEFAULT_WEAPON_PREF = new WeaponPref(UT2004ItemType.SNIPER_RIFLE, true);
29  
30  	public SniperRifleShooting(UT2004Bot<?, ?, ?> agent, AgentInfo info, ImprovedShooting shoot, Weaponry weaponry) {
31  		super(agent, info, shoot, weaponry);
32  	}
33  
34  	@Override
35  	protected WeaponPref getDefaultWeaponPref() {
36  		return DEFAULT_WEAPON_PREF;
37  	}
38  	
39  
40  
41  }