Class PathHandler

Public

Handles thread specific path data.

Public Methods

AddTemporaryNode (node)
Public
ClearPathIDs ()

Set all nodes' pathIDs to 0.

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

Returns the PathNode corresponding to the specified node.

Public
GetTemporaryNode (nodeIndex)
Public
InitializeForPath (p)
Public
IsTemporaryNode (pathNodeIndex)
Public
LogVisitedNode (pathNodeIndex, h, g)
Public

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
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)
Internal
nodeStorage
Private Readonly
pathID

Current PathID.

Private
temporaryNodes
Private