com.brackeen.javagamebook.tilegame.sprites
Class Fly

java.lang.Object
  extended by Sprite
      extended by com.brackeen.javagamebook.tilegame.sprites.Creature
          extended by com.brackeen.javagamebook.tilegame.sprites.Fly

public class Fly
extends Creature

A Fly is a Creature that fly slowly in the air.


Field Summary
 
Fields inherited from class com.brackeen.javagamebook.tilegame.sprites.Creature
STATE_DEAD, STATE_DYING, STATE_NORMAL
 
Constructor Summary
Fly(Animation left, Animation right, Animation deadLeft, Animation deadRight)
           
 
Method Summary
 float getMaxSpeed()
          Gets the maximum speed of this Creature.
 boolean isFlying()
          Checks if this creature is flying.
 
Methods inherited from class com.brackeen.javagamebook.tilegame.sprites.Creature
clone, collideHorizontal, collideVertical, getState, isAlive, setState, update, wakeUp
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Fly

public Fly(Animation left,
           Animation right,
           Animation deadLeft,
           Animation deadRight)
Method Detail

getMaxSpeed

public float getMaxSpeed()
Description copied from class: Creature
Gets the maximum speed of this Creature.

Overrides:
getMaxSpeed in class Creature

isFlying

public boolean isFlying()
Description copied from class: Creature
Checks if this creature is flying.

Overrides:
isFlying in class Creature