Examples of Scenery


Examples of com.pointcliki.dizgruntled.logic.Scenery

  public Logic createFromWWD(String logic, String image, String animation, byte[] data) {
    Logic l = null;
   
    // 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")) {
View Full Code Here

Examples of net.sertik.genesia.entity.Scenery

            Tile tile = new Tile();
            tile.setX(lx);
            tile.setY(ly);
            tile.setLand(land);
            if (rand.nextDouble() < lusciousness) {
              tile.getObjects().add(new Scenery("tree"));
            } else {
              tile.getObjects().add(new Scenery("grass"));
            }

            land.getTiles().add(tile);
          }
        }

        // generate flag tile around center
        Tile tile = land.getTile(halfOfNumberTilesSqrt + (rand.nextInt(3) - 1),
                halfOfNumberTilesSqrt + (rand.nextInt(3) - 1));
        tile.getObjects().clear();
        tile.getObjects().add(new Scenery("flag"));

        world.getLands().add(land);
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.