From 162b5e74cd2ae36a4b8e15822ff4d95d18e17f89 Mon Sep 17 00:00:00 2001 From: Sem van der Hoeven Date: Fri, 15 May 2020 19:36:38 +0200 Subject: [PATCH] removed tilewidth because the map data will not need this --- core/src/netwerkprog/game/client/Map.java | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/core/src/netwerkprog/game/client/Map.java b/core/src/netwerkprog/game/client/Map.java index cbb8e56..d22de9e 100644 --- a/core/src/netwerkprog/game/client/Map.java +++ b/core/src/netwerkprog/game/client/Map.java @@ -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; }