From a16a07846ba185c8b1715c131037be52f3998f0f Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Thu, 30 Nov 2017 18:50:26 +0100 Subject: [PATCH] Added wall width to map. --- java/Map.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/java/Map.java b/java/Map.java index d7ff9ee..2e737c8 100644 --- a/java/Map.java +++ b/java/Map.java @@ -1,7 +1,11 @@ public class Map { private Tile[][] tiles; + private int wWidth; + private int wHeight; public Map(int width, int height, int wWidth, int wHeight, Tile empty, Tile wall) { + this.wWidth = wWidth; + this.wHeight = wHeight; int fullHeight = height + (2 * wHeight); int fullWidth = width + (2 * wWidth); Tile[][] map = new Tile[fullHeight][fullWidth];