package de.gamezock.metacraft.data; public class Map { private Tile[][] tiles; private float[][] heightmap; private int width, height; private int tileSize; public Map() { width = height = 1; heightmap = new float[width][height]; heightmap[0][0] = 0; tiles = new Tile[width][height]; tiles[0][0] = new Tile(new TestTile()); tileSize = tiles[0][0].getData().getSize(); } public Tile getTile(int x, int y) { return tiles[x][y]; } public float getTileHeight(int x, int y) { return heightmap[x][y]; } public int getWidth() { return width; } public int getHeight() { return height; } public int getTileSize() { return tileSize; } }