A* Pathfinding Project  3.8.5
The A* Pathfinding Project for Unity 3D
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Events Macros Groups Pages
QuadtreeNode Class Reference

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.
 
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 Vector3 RandomPointOnSurface ()
 A random point on the surface of the 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 float SurfaceArea ()
 The surface area of the node in square world units.
 
void UpdateG (Path path, PathNode pathNode)
 
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.
 
- Package Functions inherited from GraphNode
void Destroy ()
 Destroys the node.
 
- 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.
 

Constructor & Destructor Documentation

QuadtreeNode ( AstarPath  astar)

Member Function Documentation

override void AddConnection ( GraphNode  node,
uint  cost 
)
virtual

Implements GraphNode.

override void ClearConnections ( bool  alsoReverse)
virtual

Remove all connections from this node.

Parameters
alsoReverseif true, neighbours will be requested to remove connections to this node.

Implements GraphNode.

override void GetConnections ( GraphNodeDelegate  del)
virtual

Calls the delegate with all connections from this node.

Implements GraphNode.

override void Open ( Path  path,
PathNode  pathNode,
PathHandler  handler 
)
virtual

Open the node.

Implements GraphNode.

override void RemoveConnection ( GraphNode  node)
virtual

Implements GraphNode.

void SetPosition ( Int3  value)

Member Data Documentation

uint [] connectionCosts
GraphNode [] connections

The documentation for this class was generated from the following file: