Class Laser

java.lang.Object
  extended by Actor
      extended by QuantumObject
          extended by Missile
              extended by Laser

public class Laser
extends Missile

Awesome laser beams. Available in five beautiful colors: Red (weakest), Green, Blue, White, AWESOME RAINBOW COLORS (strongest)


Field Summary
static int BASE_DAMAGE
           
 
Fields inherited from class Missile
damage, side
 
Fields inherited from class QuantumObject
destroysOnNextTurn, disappear, mantissa, speed
 
Constructor Summary
Laser()
           
Laser(int level)
          Creates a new laser beam, colored according to damage level.
 
Method Summary
 void act()
          A day in the life of a quantum object: 1.
 
Methods inherited from class Missile
getDamage, getSide, hit, setDamage, setSide
 
Methods inherited from class QuantumObject
getDestroysOnNextTurn, getSpeed, move, setDestroysOnNextTurn, setSpeed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BASE_DAMAGE

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

Laser

public Laser(int level)
Creates a new laser beam, colored according to damage level.

Parameters:
level - the laser beam's level, set by the firing gun

Laser

public Laser()
Method Detail

act

public void act()
Description copied from class: QuantumObject
A day in the life of a quantum object: 1. Maybe commit suicide (i. e. destroys itself when destroysOnNextTurn is true) 2. Do quantum object interactions with intersecting objects 3. -- Err... are you missing point 3?

Overrides:
act in class Missile