From d677dbead66c2c52c2ffc51a64ece0a06114d2ad Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Sat, 10 Feb 2018 14:41:49 +0100 Subject: Switch to gradle, update gitignore --- src/Map.java | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 src/Map.java (limited to 'src/Map.java') diff --git a/src/Map.java b/src/Map.java deleted file mode 100644 index 031e922..0000000 --- a/src/Map.java +++ /dev/null @@ -1,28 +0,0 @@ -import java.awt.Dimension; - -public class Map { - - public final Dimension size; - public final Tile grid[]; - - // TODO load map from file - // public Map(File filename) { - public Map(Dimension size) { - this.size = size; - - // populate grid - this.grid = new Tile[this.size.width * this.size.height]; - for (int y = 0; y < this.size.width; y++) { - for (int x = 0; x < this.size.height; x++) { - this.grid[y * this.size.width + x] = new Tile(Tile.Type.GRASS, x, y); - } - } - } - - // public void load() {} - - /* accessors */ - public Tile getTile(int x, int y) { - return this.grid[y * this.size.width + y]; - } -} -- cgit v1.2.1