diff options
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/map/Map0Hex.java | 16 |
1 files 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<Hex> objectives; + protected final IterableArray<Hex> objectives = new IterableArray<Hex>(10); + protected final IterableArray<Zone> entryZones = new IterableArray<Zone>(10); + protected final IterableArray<Zone> exitZones = new IterableArray<Zone>(10); public Map0Hex(final RustAndDust game, Texture map, SelectedTile hex) { super(game.factory, map, hex); this.game = game; - this.objectives = new IterableArray<Hex>(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); } |