Package com.pointcliki.dizgruntled.logic

Examples of com.pointcliki.dizgruntled.logic.Effect


    } 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")) {
      l = new Cause();
    } else if (logic.equals("CoveredPowerup") || logic.equals("Brickz")) {
      l = new Hidden();
    } else if (logic.equals("RollingBall")) {
View Full Code Here


      for (int x = 0; x < fHeight; x++) {
        GridCoordinate xy = new GridCoordinate(x, y);
       
        if (traits(xy).contains("redPyramid")) {
          // Check whether a logic has been placed here
          Effect e = gm.getFirstEntityOfTypeAt(xy, Effect.class);
          if (e == null) {
            try {
              Logic l = new Effect();
              JSONObject json = logic.exportToJSON();
              json.put("xy", (x * 32) + " " + (y * 32));
              l.importFromJSON(json);
              placeLogic(l);
            } catch (Exception e2) {
              System.err.println("Error creating virtual red pyramid logic at " + xy);
              System.err.println(e2.getMessage());
            }
View Full Code Here

TOP

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

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.