summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-12-08 01:06:24 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-12-08 01:06:24 +0100
commite13782b015b1960d1e1102ca4ded92d9d64096c9 (patch)
tree6c79daa2c07eee331de5ad30841f108f5241a74c /core/src/ch/asynk
parent7cdf36afd32432511484c14fb8798db0cfc27340 (diff)
downloadRustAndDust-e13782b015b1960d1e1102ca4ded92d9d64096c9.zip
RustAndDust-e13782b015b1960d1e1102ca4ded92d9d64096c9.tar.gz
HexSet: deals with Board instead of Map
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/rustanddust/game/HexSet.java9
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")