package edu.gatech.cs2335.lemmings.engine; /** * Class SavedLemming: This thing will basically show the animation of * the lemming going upstairs into the exit. * *
* Revision History: * v1.0 (Apr. 11, 2004) - Created the SavedLemming class ** * @author Vladimir Urazov * @version Version 1.0, Apr. 11, 2004 */ public class SavedLemming extends PrettySprite { /** * Creates a new
SavedLemming instance.
*/
public SavedLemming() {
super("saved_lemming");
}
/**
* Should return true when the sprite is ready to kill self.
*
* @return a boolean value
*/
protected boolean canKillSelf() {
if (getAnimation().getCurrentFrame() == 0) {
//The animation is through. We are done:
return true;
}
return false;
}
}