summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-05-10 12:55:24 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2016-05-10 12:55:24 +0200
commit07bcaa12726b492a6b5079616eb4ffad143725fd (patch)
tree93f215e21af8bda8f9488aecab747576d84ebc18 /core
parent86647056f08134c535492bc50e6bc3c9b1059a4b (diff)
downloadRustAndDust-07bcaa12726b492a6b5079616eb4ffad143725fd.zip
RustAndDust-07bcaa12726b492a6b5079616eb4ffad143725fd.tar.gz
Map0Hex: add getEntryZone(int) and getExitZone(int)
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/rustanddust/game/map/Map0Hex.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/map/Map0Hex.java b/core/src/ch/asynk/rustanddust/game/map/Map0Hex.java
index c2049ea..80ab5f9 100644
--- a/core/src/ch/asynk/rustanddust/game/map/Map0Hex.java
+++ b/core/src/ch/asynk/rustanddust/game/map/Map0Hex.java
@@ -82,6 +82,16 @@ public abstract class Map0Hex extends Board
zone.enable(Hex.EXIT, true);
}
+ public Zone getEntryZone(int i)
+ {
+ return entryZones.get(i);
+ }
+
+ public Zone getExitZone(int i)
+ {
+ return exitZones.get(i);
+ }
+
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); }