|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.gatech.cs2335.lemmings.physics.PhysicsObject
edu.gatech.cs2335.lemmings.engine.PrettySprite
Class PrettySprite: This is basically an eye-candy sprite. These will be things that happen to lemmings, for instance, or maybe some other effects, like a random bird flying by.
Revision History:
v1.0 (Apr. 11, 2004) - Created the PrettySprite class
| Constructor Summary | |
PrettySprite(java.lang.String animType)
Creates a new PrettySprite instance. |
|
| Method Summary | |
protected abstract boolean |
canKillSelf()
Should return true when the sprite is ready to kill self. |
void |
cleanUp()
Cleans up all references for the garbage collector. |
AnimatedSprite |
getAnimation()
Access method for the animation property. |
Level |
getLevel()
Describe getLevel method here. |
void |
setAnimation(java.lang.String type)
Describe setAnimation method here. |
void |
setLevel(Level l)
Describe setLevel method here. |
void |
updateSprite()
Should be called at every frame to update the sprite. |
| Methods inherited from class edu.gatech.cs2335.lemmings.physics.PhysicsObject |
accelerate, getGravityUpdates, getPosition, getVelocity, isFalling, setGravityUpdates, setPosition, setPosition, setVelocity, toString, updatePosition, updatePosition, updateVelocity |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PrettySprite(java.lang.String animType)
PrettySprite instance.
animType - anime| Method Detail |
public AnimatedSprite getAnimation()
public final void setAnimation(java.lang.String type)
setAnimation method here.
type - a String valuepublic final void updateSprite()
public final Level getLevel()
getLevel method here.
Level valuepublic final void setLevel(Level l)
setLevel method here.
l - a Level valuepublic void cleanUp()
cleanUp in interface ICleanableprotected abstract boolean canKillSelf()
boolean value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||