animate("IDLE1", "IDLE");
state(GruntState.IDLE);
return;
}
Task t = null;
if (fTool.equals("GAUNTLETZ")) t = new RockBreakTask(this, xy);
else if (fTool.equals("SHOVEL")) t = new HoleDigTask(this, xy);
else if (fTool.equals("GOOBER")) t = new GooSuckTask(this, xy);
if (t != null) {
boolean okay = t.start();
if (okay) {
fTask = t;
t.next();
state(GruntState.ACTING);
animate("ITEM", "ITEM", xy.subtract(fTile));
} else {
if (fTask != null) fTask.cancel();