Files
GTSchoolShit/CS2335/FinalSubmission/src/edu/gatech/cs2335/lemmings/engine/SavedLemming.java
2025-06-07 01:59:34 -04:00

39 lines
907 B
Java

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