de.rico.engine.path
Class PathFinder

java.lang.Object
  extended by de.rico.engine.path.PathFinder

public class PathFinder
extends java.lang.Object

A class that provides static methods to return a path from the characters start location to his target location by constructing a list of Walk game actions,

Author:
Frank Bruns

Constructor Summary
PathFinder()
           
 
Method Summary
static Path getPath(Point3D start, Point3D dest, SearchGrid grid)
          Returns a path from the specified start location to the specified destination.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathFinder

public PathFinder()
Method Detail

getPath

public static Path getPath(Point3D start,
                           Point3D dest,
                           SearchGrid grid)
Returns a path from the specified start location to the specified destination.

Parameters:
start - point that represents the start loaction
dest - point that represent the destination
grid - search grid to find the path
Returns:
a path from the start location to the destination