com.brackeen.javagamebook.tilegame.sprites
Class Grub

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

public class Grub
extends Creature

A Grub is a Creature that moves slowly on the ground.


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

Constructor Detail

Grub

public Grub(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