package de.eightbitboy.ecorealms.world;

public class World {
	private int sizeX;
	private int sizeY;

	private WorldTile[] worldTiles;

	public World(int sizeX, int sizeY) {
		this.sizeX = sizeX;
		this.sizeY = sizeY;
		this.worldTiles = new WorldTile[sizeX * sizeY];

		generateMap();
	}

	private void generateMap() {
		int counter = 0;
		for (int x = 0; x < sizeX; x++) {
			for (int y = 0; y < sizeY; y++) {
				worldTiles[counter] = new WorldTile();
				counter++;
			}
		}
	}

	public WorldTile[] getWorldTiles() {
		return worldTiles;
	}
}

@@ -34,16 +34,60 @@
 world;%0A%0A
+import de.eightbitboy.ecorealms.logic.Map;%0A%0A
 public c
@@ -174,16 +174,67 @@
 Tiles;%0A%0A
+%09public World(Map map) %7B%0A%09%09//TODO%0A%09%7D%0A%0A%09@Deprecated%0A
 %09public 

Save progress