game.weapons
Class Gun

java.lang.Object
  extended bygame.weapons.Weapon
      extended bygame.weapons.ProjectileLauncher
          extended bygame.weapons.Gun

public class Gun
extends ProjectileLauncher


Field Summary
static double DEFAULT_MASS
           
static double DEFAULT_RADIUS
           
 
Constructor Summary
Gun(int energy, boolean isPenetrator, boolean needsAmmo, double maxSpeed, java.lang.String name, double range, int damage, double delay)
           
 
Method Summary
 void fire(Body unit, Body target)
           
 int getEnergy()
           
 
Methods inherited from class game.weapons.ProjectileLauncher
fire, fire, isPenetrator, isReady, isRearFiring, isSplitter, setAmmo, split, toString
 
Methods inherited from class game.weapons.Weapon
getRange, inRange, integrate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_RADIUS

public static double DEFAULT_RADIUS

DEFAULT_MASS

public static double DEFAULT_MASS
Constructor Detail

Gun

public Gun(int energy,
           boolean isPenetrator,
           boolean needsAmmo,
           double maxSpeed,
           java.lang.String name,
           double range,
           int damage,
           double delay)
Method Detail

fire

public void fire(Body unit,
                 Body target)
Overrides:
fire in class ProjectileLauncher
See Also:
Weapon.fire(game.physics.Body, game.physics.Body)

getEnergy

public int getEnergy()