org.deken.game.pathfinding
Interface PathFinding

All Known Implementing Classes:
PathFindingAStar, PathFindingBreathFirst

public interface PathFinding

Author:
Gary Deken

Method Summary
 Path getPath(Node startNode, Node goalNode)
          Gets path from the start to the goal.
 Path getPath(Node startNode, Node goalNode, int excludeX, int excludeY)
          Gets the path from the start, by not going through the excludeX & Y.
 void updateTargetLocation(int x, int y)
           
 

Method Detail

getPath

Path getPath(Node startNode,
             Node goalNode)
Gets path from the start to the goal.

Parameters:
startNode -
goalNode -
Returns:
Path with List of Nodes to go through to get to the goal.

getPath

Path getPath(Node startNode,
             Node goalNode,
             int excludeX,
             int excludeY)
Gets the path from the start, by not going through the excludeX & Y.

Parameters:
startNode -
goalNode -
excludeX -
excludeY -
Returns:
Path with List of Nodes to go through to get to the goal.

updateTargetLocation

void updateTargetLocation(int x,
                          int y)
Parameters:
x -
y -