Modifier and Type | Method and Description |
---|---|
Laser |
Defender.fireWeapon()
Return the bullet this Defender is about to fire.
|
Laser |
UFO.fireWeapon(Defender defender)
Return the bullet this UFO is about to fire.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Defender.isHitByLaser(Laser theLaser)
Returns whether this Defender intersects this Laser
|
boolean |
UFO.isHitByLaser(Laser theLaser)
Returns whether this UFO intersects this Laser
|