se.liu.student.kimgr905.tilegame.sprites
Class Minilazer
java.lang.Object
se.liu.student.kimgr905.tilegame.sprites.Sprite
se.liu.student.kimgr905.tilegame.sprites.Ship
se.liu.student.kimgr905.tilegame.sprites.Minilazer
public final class Minilazer
- extends Ship
Minilazer is a ship that follows a certain
path.
|
Method Summary |
void |
changePath()
Makes the ship change path after
the counter reaches CHANGE_PATH,
and change back when it goes to
CHANGE_BACK. |
| 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 |
HIT_POINTS
private final int HIT_POINTS
- See Also:
- Constant Field Values
MAX_SPEED
private final float MAX_SPEED
- See Also:
- Constant Field Values
counter
private int counter
CHANGE_PATH
private final int CHANGE_PATH
- See Also:
- Constant Field Values
CHANGE_BACK
private final int CHANGE_BACK
- See Also:
- Constant Field Values
Minilazer
public Minilazer(Animation normal,
Animation exploding)
- Creates a minilazer ship with the specified animations.
- Parameters:
normal - normal animationexploding - exploding animation
changePath
public void changePath()
- Makes the ship change path after
the counter reaches CHANGE_PATH,
and change back when it goes to
CHANGE_BACK.
UPDATE THIS
- Overrides:
changePath in class Ship