summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r--core/src/ch/asynk/tankontank/game/Hex.java1
-rw-r--r--core/src/ch/asynk/tankontank/game/Map.java2
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 47048b5..7c23392 100644
--- a/core/src/ch/asynk/tankontank/game/Hex.java
+++ b/core/src/ch/asynk/tankontank/game/Hex.java
@@ -28,6 +28,7 @@ public class Hex extends Tile
public static final int MOVE = 3;
public static final int DIRECTIONS = 4;
public static final int ORIENTATION = 5;
+ public static final int OBJECTIVE = 6;
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 93256ab..64d3329 100644
--- a/core/src/ch/asynk/tankontank/game/Map.java
+++ b/core/src/ch/asynk/tankontank/game/Map.java
@@ -319,6 +319,8 @@ public abstract class Map extends Board
public void showBreakPawns() { breakPawns.enable(Unit.MOVE, true); }
public void hideBreakPawns() { breakPawns.enable(Unit.MOVE, false); }
+ public void showObjective(Hex hex) { enableOverlayOn(hex, Hex.OBJECTIVE, true); }
+ public void hideObjective(Hex hex) { enableOverlayOn(hex, Hex.OBJECTIVE, true); }
public void selectHex(Hex hex) { enableOverlayOn(hex, Hex.SELECT, true); }
public void unselectHex(Hex hex) { enableOverlayOn(hex, Hex.SELECT, false); }