Fixed the path finding algos a bit

This commit is contained in:
Ziver Koc 2010-02-25 23:01:46 +00:00
parent 0f85e1b4dd
commit c161e4bdd8
11 changed files with 240 additions and 205 deletions

View 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);
}