From 9c1b4170e5fa0a9899f6b6b7d370270e47166640 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 3 Oct 2014 15:09:42 +0200 Subject: Map: clearPossibles() -> hidePaths() && resetPaths() --- core/src/ch/asynk/tankontank/game/Map.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java index b3b7427..b58a1eb 100644 --- a/core/src/ch/asynk/tankontank/game/Map.java +++ b/core/src/ch/asynk/tankontank/game/Map.java @@ -110,14 +110,18 @@ public abstract class Map extends Board } } - public void clearPossibles() + public void hidePaths() { + enablePossibleTargets(false); enablePossibleMoves(false); enablePossiblePaths(false, false); - enablePossibleTargets(false); + } + + public void resetPaths() + { clearNodesSet(possiblePaths); - // clearNodesVector(possibleMoves); - // clearNodesVector(possibleTargets); + clearNodesVector(possibleMoves); + clearNodesVector(possibleTargets); } public void toggleDotOverlay(GridPoint2 hex) -- cgit v1.1-2-g2b99