removed tilewidth because the map data will not need this

This commit is contained in:
Sem van der Hoeven
2020-05-15 19:36:38 +02:00
parent 8cf834b9ea
commit 162b5e74cd

View File

@@ -1,8 +1,10 @@
package netwerkprog.game.client;
/**
* Map class to hold a 2d array of tiles which will specify the map
*/
public class Map {
private char[][] map;
private int tileWidth = 16;
public Map(int size) {
this(size,size);
@@ -12,14 +14,6 @@ public class Map {
this.map = new char[height][width];
}
public void setTileWidth(int tileWidth) {
this.tileWidth = tileWidth;
}
public int getTileWidth() {
return tileWidth;
}
public char[][] get() {
return this.map;
}