diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-03 01:58:54 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-03 01:58:54 +0200 |
commit | 6809c19db45d5cdb40ce28c52a8a86d94f890473 (patch) | |
tree | 2d38fd5db26240a40d02f2af7fd320261bb0c4b3 /core/src/ch/asynk/tankontank/engine/SearchBoard.java | |
parent | d7967cb6fc4b87989ea5222f9ee0ba73f71efee4 (diff) | |
download | RustAndDust-6809c19db45d5cdb40ce28c52a8a86d94f890473.zip RustAndDust-6809c19db45d5cdb40ce28c52a8a86d94f890473.tar.gz |
Board,SearchBoard: add getFinalPath(getFinalPath(Vector<GridPoint3> path)
Diffstat (limited to 'core/src/ch/asynk/tankontank/engine/SearchBoard.java')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/SearchBoard.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/SearchBoard.java b/core/src/ch/asynk/tankontank/engine/SearchBoard.java index 6b5ef26..0fd21e1 100644 --- a/core/src/ch/asynk/tankontank/engine/SearchBoard.java +++ b/core/src/ch/asynk/tankontank/engine/SearchBoard.java @@ -504,7 +504,11 @@ public class SearchBoard possiblePathsFilters.remove(n); else possiblePathsFilters.add(n); + return possiblePaths(); + } + public List<Vector<Node>> possiblePaths() + { int s = possiblePathsFilters.size(); List<Vector<Node>> paths = new LinkedList<Vector<Node>>(); |