org.deken.game.pathfinding
Class PathFindingAStar

java.lang.Object
  extended by org.deken.game.pathfinding.PathFindingAStar
All Implemented Interfaces:
PathFinding

public class PathFindingAStar
extends java.lang.Object
implements PathFinding

Title: PathFindingAStar

Description: TODO

Copyright: Copyright (c) Feb 12, 2012

Version:
1.0
Author:
Gary Deken

Constructor Summary
PathFindingAStar()
           
PathFindingAStar(NodeLinkComparator linkComparator)
           
 
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathFindingAStar

public PathFindingAStar()

PathFindingAStar

public PathFindingAStar(NodeLinkComparator linkComparator)
Method Detail

getPath

public Path getPath(Node startNode,
                    Node goalNode)
Description copied from interface: PathFinding
Gets path from the start to the goal.

Specified by:
getPath in interface PathFinding
Returns:
Path with List of Nodes to go through to get to the goal.

getPath

public Path getPath(Node startNode,
                    Node goalNode,
                    int excludeX,
                    int excludeY)
Description copied from interface: PathFinding
Gets the path from the start, by not going through the excludeX & Y.

Specified by:
getPath in interface PathFinding
Returns:
Path with List of Nodes to go through to get to the goal.

updateTargetLocation

public void updateTargetLocation(int x,
                                 int y)
Specified by:
updateTargetLocation in interface PathFinding