diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/GameStatePath.java | 2 | ||||
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Map.java | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/game/GameStatePath.java b/core/src/ch/asynk/tankontank/game/GameStatePath.java index d7d5b4c..06f64a4 100644 --- a/core/src/ch/asynk/tankontank/game/GameStatePath.java +++ b/core/src/ch/asynk/tankontank/game/GameStatePath.java @@ -29,7 +29,7 @@ public class GameStatePath extends GameStateCommon } if (s == 1) { - map.enableFinalPath(true); + map.enableFinalPath(downHex, true); ctrl.setState(State.DIRECTION, true); } } diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java index 47fbff7..a7bfc59 100644 --- a/core/src/ch/asynk/tankontank/game/Map.java +++ b/core/src/ch/asynk/tankontank/game/Map.java @@ -115,12 +115,13 @@ public abstract class Map extends Board enableOverlayOn(hex, Hex.DOT, enable); } - public void enableFinalPath(boolean enable) + public void enableFinalPath(GridPoint2 dst, boolean enable) { for(GridPoint2 hex : possiblePaths) { enableOverlayOn(hex, Hex.GREEN, false); enableOverlayOn(hex, Hex.DOT, false); enableOverlayOn(hex, Hex.MOVE, enable); } + enableOverlayOn(dst, Hex.ROSE, true); } } |