first commit
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
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;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user