org.deken.game.pathfinding
Class PathFindingUtils

java.lang.Object
  extended by org.deken.game.pathfinding.PathFindingUtils

public class PathFindingUtils
extends java.lang.Object

Title: PathFindingUtils

Description: TODO

Copyright: Copyright (c) Apr 22, 2012

Version:
1.0
Author:
Gary Deken

Constructor Summary
PathFindingUtils()
           
 
Method Summary
 java.util.List<java.lang.String> buildPathNodeToNode(Node node, int pathX, int pathY)
           
 Path constructPath(Node node, java.util.List<Node> pathList)
          Builds a Path from Node through the List of Nodes
 java.util.List<java.lang.String> getPathFromNodeLink(NodeLink nodeLink, int startX, int startY, int endX, int endY)
          Get a path when start and end is in the same NodeLink.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathFindingUtils

public PathFindingUtils()
Method Detail

buildPathNodeToNode

public java.util.List<java.lang.String> buildPathNodeToNode(Node node,
                                                            int pathX,
                                                            int pathY)

constructPath

public Path constructPath(Node node,
                          java.util.List<Node> pathList)
Builds a Path from Node through the List of Nodes

Parameters:
node -
pathList -
Returns:
Path

getPathFromNodeLink

public java.util.List<java.lang.String> getPathFromNodeLink(NodeLink nodeLink,
                                                            int startX,
                                                            int startY,
                                                            int endX,
                                                            int endY)
Get a path when start and end is in the same NodeLink.

Parameters:
nodeLink -
startX -
startY -
endX -
endY -
Returns:
List