A* Pathfinding Project
3.8.12
The A* Pathfinding Project for Unity 3D
|
Public Member Functions | |
QuadtreeNode (AstarPath astar) | |
override void | AddConnection (GraphNode node, uint cost) |
override void | ClearConnections (bool alsoReverse) |
Remove all connections from this node. | |
override void | GetConnections (GraphNodeDelegate del) |
Calls the delegate with all connections from this node. | |
override void | Open (Path path, PathNode pathNode, PathHandler handler) |
Open the node. | |
override void | RemoveConnection (GraphNode node) |
void | SetPosition (Int3 value) |
Public Member Functions inherited from GraphNode | |
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) |
virtual bool | GetPortal (GraphNode other, List< Vector3 > left, List< Vector3 > right, bool backwards) |
Add a portal from this node to the specified node. | |
virtual void | RecalculateConnectionCosts () |
Recalculates all connection costs from this node. | |
virtual void | SerializeNode (GraphSerializationContext ctx) |
virtual void | SerializeReferences (GraphSerializationContext ctx) |
Used to serialize references to other nodes e.g connections. | |
virtual void | UpdateRecursiveG (Path path, PathNode pathNode, PathHandler handler) |
Public Attributes | |
uint[] | connectionCosts |
GraphNode[] | connections |
Public Attributes inherited from GraphNode | |
const uint | MaxAreaIndex = FlagsAreaMask >> FlagsAreaOffset |
const uint | MaxGraphIndex = FlagsGraphMask >> FlagsGraphOffset |
Max number of graphs-1. | |
Int3 | position |
Position of the node in world space. | |
Additional Inherited Members | |
Protected Member Functions inherited from GraphNode | |
GraphNode (AstarPath astar) | |
Constructor for a graph node. | |
Protected Attributes inherited from GraphNode | |
uint | flags |
Bitpacked field holding several pieces of data. | |
Properties inherited from GraphNode | |
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. | |
QuadtreeNode | ( | AstarPath | astar | ) |
|
virtual |
Remove all connections from this node.
alsoReverse | if true, neighbours will be requested to remove connections to this node. |
Implements GraphNode.
|
virtual |
Calls the delegate with all connections from this node.
Implements GraphNode.
|
virtual |
Open the node.
Implements GraphNode.
void SetPosition | ( | Int3 | value | ) |
uint [] connectionCosts |
GraphNode [] connections |