|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Node
Title: Node
Description: TODO
Copyright: Copyright (c) Feb 11, 2012
Method Summary | |
---|---|
void |
addNode(Node node,
int distance,
java.util.List<java.lang.String> path)
Add a connecting Node that is X distance away, with a path containing points. |
void |
clear()
|
NodeLink |
getConnectionFromLocation(int x,
int y)
Gets the NodeLink that contains the given location. |
java.util.List<NodeLink> |
getConnections()
Returns the connection nodes with distance to that node. |
int |
getDistanceFromStart()
Used by pathfinding, the total distance from the start. |
GameLocation |
getGameLocation()
The location of this node as a tile location. |
java.lang.String |
getLocationKey()
Returns the Location as a String. |
Node |
getPathParent()
Used by pathfinding, gets the node traveled through to get to this node. |
void |
setDistanceFromStart(int distanceFromStart)
Used by pathfinding, sets the total distance from the start. |
void |
setPathParent(Node node)
Used by pathfinding, sets the node traveled through to get to this node. |
Method Detail |
---|
void addNode(Node node, int distance, java.util.List<java.lang.String> path)
node
- distance
- path
- void clear()
java.util.List<NodeLink> getConnections()
NodeLink getConnectionFromLocation(int x, int y)
x
- y
-
int getDistanceFromStart()
GameLocation getGameLocation()
java.lang.String getLocationKey()
Node getPathParent()
void setDistanceFromStart(int distanceFromStart)
distanceFromStart
- void setPathParent(Node node)
node
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |