From 7901668249d2f0d9669a170cf7bf429bce02c48f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 10 Feb 2016 11:18:28 +0100 Subject: Map0Hex: add protected IterableArray entryZones and exitZones --- core/src/ch/asynk/rustanddust/game/map/Map0Hex.java | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/core/src/ch/asynk/rustanddust/game/map/Map0Hex.java b/core/src/ch/asynk/rustanddust/game/map/Map0Hex.java index 0d56c45..95e56ae 100644 --- a/core/src/ch/asynk/rustanddust/game/map/Map0Hex.java +++ b/core/src/ch/asynk/rustanddust/game/map/Map0Hex.java @@ -8,19 +8,21 @@ import ch.asynk.rustanddust.engine.Board; import ch.asynk.rustanddust.engine.SelectedTile; import ch.asynk.rustanddust.engine.util.IterableArray; import ch.asynk.rustanddust.game.Hex; +import ch.asynk.rustanddust.game.Zone; import ch.asynk.rustanddust.game.Army; public abstract class Map0Hex extends Board { protected final RustAndDust game; - protected final IterableArray objectives; + protected final IterableArray objectives = new IterableArray(10); + protected final IterableArray entryZones = new IterableArray(10); + protected final IterableArray exitZones = new IterableArray(10); public Map0Hex(final RustAndDust game, Texture map, SelectedTile hex) { super(game.factory, map, hex); this.game = game; - this.objectives = new IterableArray(10); } @Override @@ -69,6 +71,16 @@ public abstract class Map0Hex extends Board return n; } + public void addEntryZone(Zone zone) + { + entryZones.add(zone); + } + + public void addExitZone(Zone zone) + { + exitZones.add(zone); + } + public void hexSelect(Hex hex) { selectedTile.set(hex); } public void hexUnselect(Hex hex) { selectedTile.hide(); } public void hexMoveShow(Hex hex) { enableOverlayOn(hex, Hex.MOVE, true); } -- cgit v1.1-2-g2b99