Package com.pointcliki.dizgruntled.logic

Examples of com.pointcliki.dizgruntled.logic.Grunt


   
    // Create scenery logic
    if (logic.equals("EyeCandy") || logic.equals("EyeCandyAni") || logic.equals("BehindCandyAni") || logic.equals("DoNothing") || logic.equals("BehindCandy")) {
      l = new Scenery();
    } else if (logic.equals("GruntStartingPoint")) {
      l = new Grunt();
    } else if (logic.equals("InGameIcon")) {
      l = new Pickup();
    } else if (logic.equals("TileTrigger") || logic.equals("TileSecretTrigger") || logic.equals("SecretLevelTrigger")) {
      l = new Effect();
    } else if (logic.equals("TileTriggerSwitch")) {
View Full Code Here


  }
 
  protected boolean passable(GridCoordinate tile) {
    TreeSet<String> traits = fScene.mapManager().map().traits(tile);
    if (traits.contains("nogo") || traits.contains("solid") || traits.contains("water")) return false;
    Grunt g = fScene.gridManager().getFirstEntityOfTypeAt(tile, Grunt.class);
    if (g != null && g.state() != GruntState.MOVING) return false;
    return true;
  }
View Full Code Here

        obj.put("toy", "NONE");
        // TODO: Fix to be correct for player
        obj.put("color", "ORANGE");
        obj.put("ai", "NO AI");
        obj.put("player", 0);
        Grunt g = (Grunt) f.createFromJSON(obj);
        levelScene().mapManager().map().placeLogic(g);
      } catch (Exception e) {
        e.printStackTrace();
      }
    }
View Full Code Here

TOP

Related Classes of com.pointcliki.dizgruntled.logic.Grunt

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.