diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-01-19 18:03:43 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-01-19 18:03:43 +0100 |
commit | 764168edcadd7528c4a1fb2d0e7af072a12d367c (patch) | |
tree | a5ec0def95e1ede8c3f882c8585e95a3fe1371ed /core | |
parent | c4daa2d14a7f82f9bed4cedb79cfc5735c29dee5 (diff) | |
download | RustAndDust-764168edcadd7528c4a1fb2d0e7af072a12d367c.zip RustAndDust-764168edcadd7528c4a1fb2d0e7af072a12d367c.tar.gz |
Hex,Map: add Hex.EXIT, showExit(Hex) hideExit(Hex)
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Hex.java | 1 | ||||
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Map.java | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Hex.java b/core/src/ch/asynk/tankontank/game/Hex.java index c1ef21a..328d2df 100644 --- a/core/src/ch/asynk/tankontank/game/Hex.java +++ b/core/src/ch/asynk/tankontank/game/Hex.java @@ -33,6 +33,7 @@ public class Hex extends Tile public static final int OBJECTIVE_HOLD = 7; public static final int OBJECTIVE_GE = 8; public static final int OBJECTIVE_US = 9; + public static final int EXIT = 10; public Terrain terrain; public int roads; diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java index f5a9355..200ca16 100644 --- a/core/src/ch/asynk/tankontank/game/Map.java +++ b/core/src/ch/asynk/tankontank/game/Map.java @@ -564,6 +564,8 @@ public abstract class Map extends Board public void hideDirections(Hex hex) { enableOverlayOn(hex, Hex.DIRECTIONS, false); } public void showOrientation(Hex hex, Orientation o) { enableOverlayOn(hex, Hex.ORIENTATION, o, true); } public void hideOrientation(Hex hex) { enableOverlayOn(hex, Hex.ORIENTATION, false); } + public void showExit(Hex hex) { enableOverlayOn(hex, Hex.EXIT, true); } + public void hideExit(Hex hex) { enableOverlayOn(hex, Hex.EXIT, false); } public void showObjective(Hex hex, Army army, boolean hold) { |