public class RouteNodeInfo
extends Object
| Modifier and Type | Field and Description |
|---|---|
short |
endTileXCoordinate |
short |
endTileYCoordinate |
short |
length |
RouteNodeType |
type |
| Modifier and Type | Method and Description |
|---|---|
static RouteNodeInfo |
get(Node node,
RouteNodeGraph routingGraph)
Gets the information that a
RouteNode is built out of, for a given node. |
static RouteNodeType |
getType(Node node,
RouteNodeGraph routingGraph) |
public final RouteNodeType type
public final short endTileXCoordinate
public final short endTileYCoordinate
public final short length
public static RouteNodeInfo get(Node node, RouteNodeGraph routingGraph)
RouteNode is built out of, for a given node.node - Node to describe.routingGraph - Graph the node is to be a part of, or null to describe the node on its
own; the returned RouteNodeInfo.type is then null, since a type only has
meaning within a graph.public static RouteNodeType getType(Node node, RouteNodeGraph routingGraph)