From e13782b015b1960d1e1102ca4ded92d9d64096c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 8 Dec 2015 01:06:24 +0100 Subject: HexSet: deals with Board instead of Map --- core/src/ch/asynk/rustanddust/game/HexSet.java | 9 +++++---- 1 file 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 { - 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") -- cgit v1.1-2-g2b99