summaryrefslogtreecommitdiffstats
path: root/core/src/ch
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch')
-rw-r--r--core/src/ch/asynk/tankontank/game/Hex.java1
-rw-r--r--core/src/ch/asynk/tankontank/game/Map.java5
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StateRotate.java4
3 files changed, 9 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Hex.java b/core/src/ch/asynk/tankontank/game/Hex.java
index 35bef9a..d61d601 100644
--- a/core/src/ch/asynk/tankontank/game/Hex.java
+++ b/core/src/ch/asynk/tankontank/game/Hex.java
@@ -27,6 +27,7 @@ public class Hex extends Tile
public static final int MOVE2 = 4;
public static final int DIRECTIONS = 5;
public static final int ASSIST = 6;
+ public static final int ORIENTATION = 7;
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 7c1bdbe..3178aca 100644
--- a/core/src/ch/asynk/tankontank/game/Map.java
+++ b/core/src/ch/asynk/tankontank/game/Map.java
@@ -144,6 +144,11 @@ public abstract class Map extends Board
enableOverlayOn(hex, Hex.DIRECTIONS, enable);
}
+ public void showOrientation(GridPoint2 hex, boolean enable, Orientation o)
+ {
+ enableOverlayOn(hex, Hex.ORIENTATION, enable, o);
+ }
+
public int possiblePathsSize()
{
return possiblePaths.size();
diff --git a/core/src/ch/asynk/tankontank/game/states/StateRotate.java b/core/src/ch/asynk/tankontank/game/states/StateRotate.java
index f692ed0..431c5a1 100644
--- a/core/src/ch/asynk/tankontank/game/states/StateRotate.java
+++ b/core/src/ch/asynk/tankontank/game/states/StateRotate.java
@@ -44,6 +44,7 @@ public class StateRotate extends StateCommon
unselectHex(from);
map.showFinalPath(to, false);
map.showDirections(to, false);
+ map.showOrientation(to, false, o);
to.set(-1, -1);
from.set(-1, -1);
}
@@ -65,7 +66,8 @@ public class StateRotate extends StateCommon
rotationSet = true;
if (ctrl.cfg.mustValidate) {
- // TODO show overlay
+ map.showDirections(to, false);
+ map.showOrientation(to, true, o);
ctrl.hud.show(true, false, false, true, ctrl.cfg.canCancel);
} else
doRotation(o);