summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-03 15:09:42 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-03 15:09:42 +0200
commit9c1b4170e5fa0a9899f6b6b7d370270e47166640 (patch)
treec9d75f04308268cb902fd3f3f1d28bb43b0892b1 /core/src/ch/asynk
parent6b52891a0206ea97157009ab77ea4422a3d20a9e (diff)
downloadRustAndDust-9c1b4170e5fa0a9899f6b6b7d370270e47166640.zip
RustAndDust-9c1b4170e5fa0a9899f6b6b7d370270e47166640.tar.gz
Map: clearPossibles() -> hidePaths() && resetPaths()
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/tankontank/game/Map.java12
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)