diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-12-08 01:06:24 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-12-08 01:06:24 +0100 |
commit | e13782b015b1960d1e1102ca4ded92d9d64096c9 (patch) | |
tree | 6c79daa2c07eee331de5ad30841f108f5241a74c /core/src/ch | |
parent | 7cdf36afd32432511484c14fb8798db0cfc27340 (diff) | |
download | RustAndDust-e13782b015b1960d1e1102ca4ded92d9d64096c9.zip RustAndDust-e13782b015b1960d1e1102ca4ded92d9d64096c9.tar.gz |
HexSet: deals with Board instead of Map
Diffstat (limited to 'core/src/ch')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/HexSet.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/HexSet.java b/core/src/ch/asynk/rustanddust/game/HexSet.java index 4382fdb..091ebbe 100644 --- a/core/src/ch/asynk/rustanddust/game/HexSet.java +++ b/core/src/ch/asynk/rustanddust/game/HexSet.java @@ -4,21 +4,22 @@ import java.util.Collection; import java.util.LinkedHashSet; import ch.asynk.rustanddust.engine.Tile; +import ch.asynk.rustanddust.engine.Board; public class HexSet extends LinkedHashSet<Hex> { - private final Map map; + private final Board board; - public HexSet(Map map, int n) + public HexSet(Board board, int n) { super(n); - this.map = map; + this.board = board; } public void enable(int i, boolean enable) { for (Hex hex : this) - map.enableOverlayOn(hex, i, enable); + board.enableOverlayOn(hex, i, enable); } @SuppressWarnings("unchecked") |