From 8919200e69f7972813de1a8e73f3159274227aa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 14 Nov 2014 17:04:25 +0100 Subject: Map: show/hideFinalPath() -> show/hidePath() --- core/src/ch/asynk/tankontank/game/Map.java | 4 ++-- core/src/ch/asynk/tankontank/game/states/StateMove.java | 2 +- core/src/ch/asynk/tankontank/game/states/StateRotate.java | 4 ++-- 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(); -- cgit v1.1-2-g2b99