Class LaserGun

java.lang.Object
  extended by Gun
      extended by LaserGun

public class LaserGun
extends Gun

Shoots laser beams.


Field Summary
static int BASE_RECOVERY
           
static int DY
           
 
Fields inherited from class Gun
abs_speed, angle, direction, dx, dy, initial_recovery, level, recovery, side, speed, timer
 
Constructor Summary
LaserGun()
           
LaserGun(double abs_speed, double angle)
           
LaserGun(Vector speed)
           
 
Method Summary
 LaserGun copy_gun()
          Return an exact copy of this gun.
 Laser get_missile()
           
protected  void init()
           
 
Methods inherited from class Gun
get_dx, get_dy, getAbsSpeed, getAngle, getInitialRecovery, getLevel, getRecovery, getSide, getTimer, missile, set_dx, set_dy, setInitialRecovery, setLevel, setRecovery, setSide, setSpeed, setSpeed, setTimer, tick
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BASE_RECOVERY

public static final int BASE_RECOVERY
See Also:
Constant Field Values

DY

public static final int DY
See Also:
Constant Field Values
Constructor Detail

LaserGun

public LaserGun()

LaserGun

public LaserGun(double abs_speed,
                double angle)

LaserGun

public LaserGun(Vector speed)
Method Detail

init

protected void init()
Overrides:
init in class Gun

copy_gun

public LaserGun copy_gun()
Description copied from class: Gun
Return an exact copy of this gun. Used especially in the MoreGuns powerup. TODO: make this more dynamic.

Overrides:
copy_gun in class Gun
See Also:
MoreGuns

get_missile

public Laser get_missile()
Overrides:
get_missile in class Gun