Package net.sertik.genesia.entity

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

Related Classes of net.sertik.genesia.entity.Scenery

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.