Package com.pointcliki.dizgruntled.grunt

Examples of com.pointcliki.dizgruntled.grunt.Task


      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();
View Full Code Here

TOP

Related Classes of com.pointcliki.dizgruntled.grunt.Task

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.