se.liu.student.kimgr905.tilegame.sprites
Class Drone

java.lang.Object
  extended by se.liu.student.kimgr905.tilegame.sprites.Sprite
      extended by se.liu.student.kimgr905.tilegame.sprites.Ship
          extended by se.liu.student.kimgr905.tilegame.sprites.Drone

public final class Drone
extends Ship

Drone is a simple "zombie" enemy ship that will just move down on the y-axis.


Field Summary
private static int HIT_POINTS
           
private static float MAX_SPEED
           
 
Fields inherited from class se.liu.student.kimgr905.tilegame.sprites.Sprite
anim, STATE_DEAD, STATE_EXPLODING, STATE_NORMAL, STATE_SHOOTING
 
Constructor Summary
Drone(Animation normal, Animation exploding)
          Creates a drone ship with the specified animations.
 
Method Summary
 
Methods inherited from class se.liu.student.kimgr905.tilegame.sprites.Ship
changePath, changePath, clone, getHitPoints, hit, isAwake, setHitPoints, setState, shoot, update, wakeUp
 
Methods inherited from class se.liu.student.kimgr905.tilegame.sprites.Sprite
getHeight, getImage, getState, getVelocityX, getVelocityY, getWidth, getX, getY, isAlive, setVelocityX, setVelocityY, setX, setY
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HIT_POINTS

private static final int HIT_POINTS
See Also:
Constant Field Values

MAX_SPEED

private static final float MAX_SPEED
See Also:
Constant Field Values
Constructor Detail

Drone

public Drone(Animation normal,
             Animation exploding)
Creates a drone ship with the specified animations.

Parameters:
normal - normal animation
exploding - exploding animation