diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-14 17:04:25 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-14 17:04:25 +0100 |
commit | 8919200e69f7972813de1a8e73f3159274227aa8 (patch) | |
tree | f7ec28ddde70eb8f9f4b0f783156a4f07efee8ee /core/src/ch | |
parent | e13690e397590190a43aa3f2c0e41519380889d1 (diff) | |
download | RustAndDust-8919200e69f7972813de1a8e73f3159274227aa8.zip RustAndDust-8919200e69f7972813de1a8e73f3159274227aa8.tar.gz |
Map: show/hideFinalPath() -> show/hidePath()
Diffstat (limited to 'core/src/ch')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Map.java | 4 | ||||
-rw-r--r-- | core/src/ch/asynk/tankontank/game/states/StateMove.java | 2 | ||||
-rw-r--r-- | 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(); |