Class PathHandler

Public

Handles thread specific path data.

Public Methods

Add a new temporary node for this path request.

Set all nodes' pathIDs to 0.

Dispose ()
GetNode (nodeIndex)
GetPathNode (node, variant=0)

Returns the PathNode corresponding to the specified node.

GetTemporaryNode (nodeIndex)
IsTemporaryNode (pathNodeIndex)
LogVisitedNode (pathNodeIndex, h, g)

Public Variables

DebugStringBuilder

StringBuilder that paths can use to build debug strings.

Public Readonly
PathID

ID for the path currently being calculated or last path that was calculated.

Public
constraintWrapper
Public Readonly
heap

Binary heap to keep track of nodes on the "Open list".

Public
numTemporaryNodes
Public
pathNodes

Reference to the per-node data for this thread.

Public
temporaryNodeStartIndex

All path nodes with an index greater or equal to this are temporary nodes that only exist for the duration of a single path.

Public
threadID
Public Readonly
totalThreadCount
Public Readonly

Private/Protected Members

PathHandler (nodeStorage, threadID, totalThreadCount)
debugPathNodes
Private
nodeStorage
Internal Readonly
pathID

Current PathID.

Private
temporaryNodes
Private