Fixed the path finding algos a bit
This commit is contained in:
parent
0f85e1b4dd
commit
c161e4bdd8
11 changed files with 240 additions and 205 deletions
21
src/zutil/algo/path/PathFinder.java
Normal file
21
src/zutil/algo/path/PathFinder.java
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
package zutil.algo.path;
|
||||
|
||||
import java.util.LinkedList;
|
||||
|
||||
/**
|
||||
* All path finding algorithms should implement this interface
|
||||
*
|
||||
* @author Ziver
|
||||
*/
|
||||
public interface PathFinder {
|
||||
|
||||
/**
|
||||
* Starts the search for the path from the start
|
||||
* node to the goal.
|
||||
*
|
||||
* @param start is the starting point of the search
|
||||
* @param goal is the search goal
|
||||
* @return a LinkedList of the path, empty list if no path was found
|
||||
*/
|
||||
public LinkedList<PathNode> find(PathNode start, PathNode goal);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue