diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-01-24 19:29:30 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-01-24 19:29:30 +0100 |
commit | 6628886ef0a9df84e011a3203512b9200000fb64 (patch) | |
tree | 714e8363b1c5560b84d9299fdfaed53416e89c1d /core/src | |
parent | 9fe93fed715e77fe0167bf148bf197c017aa41ee (diff) | |
download | RustAndDust-6628886ef0a9df84e011a3203512b9200000fb64.zip RustAndDust-6628886ef0a9df84e011a3203512b9200000fb64.tar.gz |
Zone: add method add(int, int)
Diffstat (limited to 'core/src')
-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)); + } } |