|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deken.game.pathfinding.PathFindingUtils
public class PathFindingUtils
Title: PathFindingUtils
Description: TODO
Copyright: Copyright (c) Apr 22, 2012
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 |
---|
public PathFindingUtils()
Method Detail |
---|
public java.util.List<java.lang.String> buildPathNodeToNode(Node node, int pathX, int pathY)
public Path constructPath(Node node, java.util.List<Node> pathList)
node
- pathList
-
public java.util.List<java.lang.String> getPathFromNodeLink(NodeLink nodeLink, int startX, int startY, int endX, int endY)
nodeLink
- startX
- startY
- endX
- endY
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |