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/Map.java4
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StateMove.java2
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StateRotate.java4
3 files changed, 5 insertions, 5 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java
index 089c93b..26bc0b2 100644
--- a/core/src/ch/asynk/tankontank/game/Map.java
+++ b/core/src/ch/asynk/tankontank/game/Map.java
@@ -308,8 +308,8 @@ public abstract class Map extends Board
public void hidePossibleMoves() { possibleMoves.enable(Hex.AREA, false); }
public void showPossiblePaths() { possiblePaths.enable(Hex.AREA, true); }
public void hidePossiblePaths() { possiblePaths.enable(Hex.AREA, false); }
- public void showFinalPath(Hex dst) { possiblePaths.enable(Hex.MOVE, true); showMove(dst); }
- public void hideFinalPath(Hex dst) { possiblePaths.enable(Hex.MOVE, false); hideMove(dst); }
+ public void showPath(Hex dst) { possiblePaths.enable(Hex.MOVE, true); showMove(dst); }
+ public void hidePath(Hex dst) { possiblePaths.enable(Hex.MOVE, false); hideMove(dst); }
public void showMoveablePawns() { moveablePawns.enable(Unit.MOVE, true); }
public void hideMoveablePawns() { moveablePawns.enable(Unit.MOVE, false); }
diff --git a/core/src/ch/asynk/tankontank/game/states/StateMove.java b/core/src/ch/asynk/tankontank/game/states/StateMove.java
index 5dfbd65..e474396 100644
--- a/core/src/ch/asynk/tankontank/game/states/StateMove.java
+++ b/core/src/ch/asynk/tankontank/game/states/StateMove.java
@@ -43,7 +43,7 @@ public class StateMove extends StateCommon
map.hidePossibleMoves();
map.unselectHex(activeUnit.getHex());
if (to != null) {
- map.hideFinalPath(to);
+ map.hidePath(to);
}
if (nextState != StateType.SELECT) {
diff --git a/core/src/ch/asynk/tankontank/game/states/StateRotate.java b/core/src/ch/asynk/tankontank/game/states/StateRotate.java
index 814f90f..a9a045b 100644
--- a/core/src/ch/asynk/tankontank/game/states/StateRotate.java
+++ b/core/src/ch/asynk/tankontank/game/states/StateRotate.java
@@ -33,7 +33,7 @@ public class StateRotate extends StateCommon
rotateOnly = (to == activeUnit.getHex());
if (!rotateOnly)
- map.showFinalPath(to);
+ map.showPath(to);
map.selectHex(activeUnit.getHex());
map.showDirections(to);
@@ -44,7 +44,7 @@ public class StateRotate extends StateCommon
public void leave(StateType nextState)
{
map.unselectHex(activeUnit.getHex());
- map.hideFinalPath(to);
+ map.hidePath(to);
map.hideDirections(to);
map.hideOrientation(to);
map.possiblePaths.clear();