Base class for GridNode and LevelGridNode.
More...
Base class for GridNode and LevelGridNode.
|
int | NodeInGridIndex [get, set] |
| The index of the node in the grid.
|
|
uint | Area [get, set] |
|
bool | Destroyed [get] |
|
uint | Flags [get, set] |
| Holds various bitpacked variables.
|
|
uint | GraphIndex [get, set] |
|
int | NodeIndex [get] |
| Internal unique index.
|
|
uint | Penalty [get, set] |
| Penalty cost for walking on this node.
|
|
uint | Tag [get, set] |
|
bool | Walkable [get, set] |
| True if the node is traversable.
|
|
|
abstract void | AddConnection (GraphNode node, uint cost) |
|
abstract void | ClearConnections (bool alsoReverse) |
| Remove all connections from this node.
|
|
virtual bool | ContainsConnection (GraphNode node) |
| Checks if this node has a connection to the specified node.
|
|
virtual void | DeserializeNode (GraphSerializationContext ctx) |
|
virtual void | DeserializeReferences (GraphSerializationContext ctx) |
| Used to deserialize references to other nodes e.g connections.
|
|
void | Destroy () |
| Destroys the node.
|
|
virtual void | FloodFill (Stack< GraphNode > stack, uint region) |
|
abstract void | GetConnections (GraphNodeDelegate del) |
| Calls the delegate with all connections from this node.
|
|
virtual bool | GetPortal (GraphNode other, List< Vector3 > left, List< Vector3 > right, bool backwards) |
| Add a portal from this node to the specified node.
|
|
abstract void | Open (Path path, PathNode pathNode, PathHandler handler) |
| Open the node.
|
|
virtual void | RecalculateConnectionCosts () |
| Recalculates all connection costs from this node.
|
|
abstract void | RemoveConnection (GraphNode node) |
|
virtual void | SerializeNode (GraphSerializationContext ctx) |
|
virtual void | SerializeReferences (GraphSerializationContext ctx) |
| Used to serialize references to other nodes e.g connections.
|
|
void | UpdateG (Path path, PathNode pathNode) |
|
virtual void | UpdateRecursiveG (Path path, PathNode pathNode, PathHandler handler) |
|
const uint | MaxAreaIndex = FlagsAreaMask >> FlagsAreaOffset |
|
const uint | MaxGraphIndex = FlagsGraphMask >> FlagsGraphOffset |
| Max number of graphs-1.
|
|
Int3 | position |
|
The index of the node in the grid.
This is x + z*graph.width (+ y*graph.width*graph.depth if this is a LayerGridGraph) So you can get the X and Z indices using
int index = node.NodeInGridIndex;
int x = index % graph.width;
int z = index / graph.width;
The documentation for this class was generated from the following file:
- /Users/arong/Unity/a-pathfinding-project/Assets/AstarPathfindingProject/Generators/NodeClasses/GridNode.cs