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

java.lang.Object
  extended by se.liu.student.kimgr905.tilegame.sprites.Sprite
      extended by se.liu.student.kimgr905.tilegame.sprites.PowerUp
Direct Known Subclasses:
PowerUp.Shield, PowerUp.Weapon

public abstract class PowerUp
extends Sprite

A PowerUp class is a Sprite that the player can pick up.


Nested Class Summary
static class PowerUp.Shield
          A Shield PowerUp.
static class PowerUp.Weapon
          A Weapon PowerUp.
 
Field Summary
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
PowerUp(Animation anim)
           
 
Method Summary
 
Methods inherited from class se.liu.student.kimgr905.tilegame.sprites.Sprite
clone, getHeight, getImage, getState, getVelocityX, getVelocityY, getWidth, getX, getY, isAlive, setState, setVelocityX, setVelocityY, setX, setY, update
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_SPEED

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

PowerUp

PowerUp(Animation anim)