state(1);
}
public void state(int s) {
fPalette = new GruntPalette(fColor, GruntzGame.resourceManager().rez().file("GRUNTZ/PALETTEZ/" + fColor + "TOOL", "pal"));
AnimatedSprite sprite = new MonolithANI(GruntzGame.resourceManager().rez().file("GRUNTZ/ANIZ/GRUNTPUDDLE/GRUNTPUDDLE" + (s + 1), "ani"), "GRUNTZ/IMAGEZ/GRUNTPUDDLE").sprite(fPalette);
if (fAnimation != null) fAnimation.cleanup();
fAnimation = sprite;
addChild(fAnimation);
if (map() != null) fAnimation.start();
fSpan = fAnimation.span();