diff options
Diffstat (limited to 'core/src/ch')
-rw-r--r-- | core/src/ch/asynk/rustanddust/engine/TileSet.java | 2 | ||||
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/Zone.java | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/core/src/ch/asynk/rustanddust/engine/TileSet.java b/core/src/ch/asynk/rustanddust/engine/TileSet.java index 2d8d750..bd620b2 100644 --- a/core/src/ch/asynk/rustanddust/engine/TileSet.java +++ b/core/src/ch/asynk/rustanddust/engine/TileSet.java @@ -4,7 +4,7 @@ import ch.asynk.rustanddust.engine.util.IterableSet; public class TileSet extends IterableSet<Tile> { - private final Board board; + protected final Board board; public TileSet(Board board, int n) { diff --git a/core/src/ch/asynk/rustanddust/game/Zone.java b/core/src/ch/asynk/rustanddust/game/Zone.java index 1fcc4f6..43aabbe 100644 --- a/core/src/ch/asynk/rustanddust/game/Zone.java +++ b/core/src/ch/asynk/rustanddust/game/Zone.java @@ -12,4 +12,9 @@ public class Zone extends TileSet { super(map, n); } + + public void add(int col, int row) + { + add(((Map) board).getHex(col, row)); + } } |