|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSprite
com.brackeen.javagamebook.tilegame.sprites.Creature
com.brackeen.javagamebook.tilegame.sprites.Fly
public class Fly
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 |
---|
public Fly(Animation left, Animation right, Animation deadLeft, Animation deadRight)
Method Detail |
---|
public float getMaxSpeed()
Creature
getMaxSpeed
in class Creature
public boolean isFlying()
Creature
isFlying
in class Creature
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |