land.setName("Judokan");
land.setWorld(world);
for (int lx = 0; lx < numberTilesSqrt; lx++) {
for (int ly = 0; ly < numberTilesSqrt; ly++) {
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);
}
}