diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-03 15:09:42 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-03 15:09:42 +0200 |
commit | 9c1b4170e5fa0a9899f6b6b7d370270e47166640 (patch) | |
tree | c9d75f04308268cb902fd3f3f1d28bb43b0892b1 /core/src/ch | |
parent | 6b52891a0206ea97157009ab77ea4422a3d20a9e (diff) | |
download | RustAndDust-9c1b4170e5fa0a9899f6b6b7d370270e47166640.zip RustAndDust-9c1b4170e5fa0a9899f6b6b7d370270e47166640.tar.gz |
Map: clearPossibles() -> hidePaths() && resetPaths()
Diffstat (limited to 'core/src/ch')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Map.java | 12 |
1 files 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) |