|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectse.liu.student.kimgr905.tilegame.sprites.Sprite
se.liu.student.kimgr905.tilegame.sprites.Ship
se.liu.student.kimgr905.tilegame.sprites.Drone
public final class Drone
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 |
|---|
private static final int HIT_POINTS
private static final float MAX_SPEED
| Constructor Detail |
|---|
public Drone(Animation normal,
Animation exploding)
normal - normal animationexploding - exploding animation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||