C# Class AstarPath, Binary

Inheritance: MonoBehaviour
Show file Open project: austinshenk/Binary Class Usage Examples

Public Properties

Property Type Description
Distribution AstarDistribution
HasPro bool
On65KOverflow OnVoidDelegate
OnAwakeSettings OnVoidDelegate
OnDrawGizmosCallback OnVoidDelegate
OnGraphPostScan OnGraphDelegate
OnGraphPreScan OnGraphDelegate
OnGraphsUpdated OnScanDelegate
OnGraphsWillBeUpdated OnVoidDelegate
OnGraphsWillBeUpdated2 OnVoidDelegate
OnLatePostScan OnScanDelegate
OnPathPostSearch OnPathDelegate
OnPathPreSearch OnPathDelegate
OnPostScan OnScanDelegate
OnPreScan OnScanDelegate
PathPool Stack
PathsCompleted int
TotalSearchTime System.Int64
TotalSearchedNodes System.Int64
active AstarPath
astarData AstarData
colorSettings AstarColor
debugFloor float
debugMode GraphDebugMode
debugPath Path
debugRoof float
fullGetNearestSearch bool
heuristic Heuristic
heuristicScale float
inGameDebugPath string
isScanning bool
lastScanTime float
lastUniqueAreaIndex int
limitGraphUpdates bool
logPathResults PathLog
maxFrameTime float
maxGraphUpdateFreq float
maxNearestNodeDistance float
minAreaSize int
pathQueue Queue
pathReturnStack Pathfinding.Util.LockFreeStack
prioritizeGraphs bool
prioritizeGraphsLimit float
recyclePaths bool
scanOnStartup bool
showGraphs bool
showNavGraphs bool
showSearchTree bool
showUnwalkableNodes bool
stepByStep bool
threadCount ThreadCount
threadEnumerator IEnumerator
threadInfos PathThreadInfo[]
threads Thread[]
unwalkableNodeDebugSize float

Public Methods

Method Description
ApplyLinks ( ) : void
AutoScan ( ) : bool
Awake ( ) : void
CalculateThreadCount ( ThreadCount count ) : int
DataUpdate ( ) : void
FindTagNames ( ) : string[]
FloodFill ( ) : void
FloodFill ( Node seed ) : void
FloodFill ( Node seed, int area ) : void
FlushGraphUpdates ( ) : void
FlushThreadSafeCallbacks ( ) : void
ForceCallThreadSafeCallbacks ( ) : void
GetNearest ( Vector3 position ) : NNInfo
GetNearest ( Vector3 position, NNConstraint constraint ) : NNInfo
GetNearest ( Vector3 position, NNConstraint constraint, Node hint ) : NNInfo
GetNearest ( Ray ray ) : Node
GetNextPathID ( ) : ushort
GetTagNames ( ) : string[]
LogProfiler ( ) : void
NodeCountChanged ( ) : void
OnApplicationQuit ( ) : void
OnDestroy ( ) : void
QueueGraphUpdates ( ) : void
RegisterSafeUpdate ( OnVoidDelegate callback, bool threadSafe ) : void
ResetProfiler ( ) : void
ReturnPaths ( bool timeSlice ) : void
ReturnsPathsHandler ( ) : IEnumerator
Scan ( ) : void
ScanLoop ( ) : IEnumerable
SetUpReferences ( ) : void
StartPath ( Path p ) : void
UpdateGraphs ( Bounds bounds ) : void
UpdateGraphs ( Bounds bounds, float t ) : void
UpdateGraphs ( GraphUpdateObject ob ) : void
UpdateGraphs ( GraphUpdateObject ob, float t ) : void
UpdatePathThreadInfoNodes ( ) : void
WaitForPath ( Path p ) : void

Private Methods

Method Description
AstarLog ( string s ) : void
AstarLogError ( string s ) : void
CalculatePaths ( System _threadInfo ) : IEnumerator
CalculatePathsHandler ( System _threadData ) : IEnumerator
CalculatePathsThreaded ( System _threadInfo ) : void
DelayedGraphUpdate ( ) : IEnumerator
DoUpdateGraphs ( ) : void
Initialize ( ) : void
IsPathPossible ( Node n1, Node n2 ) : bool
LockThread ( System _astar ) : void
LogPathResults ( Path p ) : void
MenuScan ( ) : void
OnDrawGizmos ( ) : void
OnGUI ( ) : void
ResetQueueStates ( ) : void
TrickAbortThreads ( ) : void
TryCallThreadSafeCallbacks ( ) : void
Update ( ) : void
UpdateGraphsInteral ( GraphUpdateObject ob, float t ) : IEnumerator
WillBlockPath ( GraphUpdateObject ob, Node n1, Node n2 ) : bool

Method Details

ApplyLinks() public method

public ApplyLinks ( ) : void
return void

AutoScan() public method

public AutoScan ( ) : bool
return bool

Awake() public method

public Awake ( ) : void
return void

CalculateThreadCount() public static method

public static CalculateThreadCount ( ThreadCount count ) : int
count ThreadCount
return int

DataUpdate() public method

public DataUpdate ( ) : void
return void

FindTagNames() public static method

public static FindTagNames ( ) : string[]
return string[]

FloodFill() public method

public FloodFill ( ) : void
return void

FloodFill() public method

public FloodFill ( Node seed ) : void
seed Node
return void

FloodFill() public method

public FloodFill ( Node seed, int area ) : void
seed Node
area int
return void

FlushGraphUpdates() public method

public FlushGraphUpdates ( ) : void
return void

FlushThreadSafeCallbacks() public method

public FlushThreadSafeCallbacks ( ) : void
return void

ForceCallThreadSafeCallbacks() public static method

public static ForceCallThreadSafeCallbacks ( ) : void
return void

GetNearest() public method

public GetNearest ( Vector3 position ) : NNInfo
position Vector3
return Pathfinding.NNInfo

GetNearest() public method

public GetNearest ( Vector3 position, NNConstraint constraint ) : NNInfo
position Vector3
constraint Pathfinding.NNConstraint
return Pathfinding.NNInfo

GetNearest() public method

public GetNearest ( Vector3 position, NNConstraint constraint, Node hint ) : NNInfo
position Vector3
constraint Pathfinding.NNConstraint
hint Node
return Pathfinding.NNInfo

GetNearest() public method

public GetNearest ( Ray ray ) : Node
ray Ray
return Node

GetNextPathID() public method

public GetNextPathID ( ) : ushort
return ushort

GetTagNames() public method

public GetTagNames ( ) : string[]
return string[]

LogProfiler() public method

public LogProfiler ( ) : void
return void

NodeCountChanged() public method

public NodeCountChanged ( ) : void
return void

OnApplicationQuit() public method

public OnApplicationQuit ( ) : void
return void

OnDestroy() public method

public OnDestroy ( ) : void
return void

QueueGraphUpdates() public method

public QueueGraphUpdates ( ) : void
return void

RegisterSafeUpdate() public static method

public static RegisterSafeUpdate ( OnVoidDelegate callback, bool threadSafe ) : void
callback OnVoidDelegate
threadSafe bool
return void

ResetProfiler() public method

public ResetProfiler ( ) : void
return void

ReturnPaths() public method

public ReturnPaths ( bool timeSlice ) : void
timeSlice bool
return void

ReturnsPathsHandler() public method

public ReturnsPathsHandler ( ) : IEnumerator
return IEnumerator

Scan() public method

public Scan ( ) : void
return void

ScanLoop() public method

public ScanLoop ( ) : IEnumerable
return IEnumerable

SetUpReferences() public method

public SetUpReferences ( ) : void
return void

StartPath() public static method

public static StartPath ( Path p ) : void
p Path
return void

UpdateGraphs() public method

public UpdateGraphs ( Bounds bounds ) : void
bounds Bounds
return void

UpdateGraphs() public method

public UpdateGraphs ( Bounds bounds, float t ) : void
bounds Bounds
t float
return void

UpdateGraphs() public method

public UpdateGraphs ( GraphUpdateObject ob ) : void
ob GraphUpdateObject
return void

UpdateGraphs() public method

public UpdateGraphs ( GraphUpdateObject ob, float t ) : void
ob GraphUpdateObject
t float
return void

UpdatePathThreadInfoNodes() public method

public UpdatePathThreadInfoNodes ( ) : void
return void

WaitForPath() public static method

public static WaitForPath ( Path p ) : void
p Path
return void

Property Details

Distribution public static property

public static AstarDistribution Distribution
return AstarDistribution

HasPro public static property

public static bool HasPro
return bool

On65KOverflow public static property

public static OnVoidDelegate On65KOverflow
return OnVoidDelegate

OnAwakeSettings public static property

public static OnVoidDelegate OnAwakeSettings
return OnVoidDelegate

OnDrawGizmosCallback public property

public OnVoidDelegate OnDrawGizmosCallback
return OnVoidDelegate

OnGraphPostScan public static property

public static OnGraphDelegate OnGraphPostScan
return OnGraphDelegate

OnGraphPreScan public static property

public static OnGraphDelegate OnGraphPreScan
return OnGraphDelegate

OnGraphsUpdated public static property

public static OnScanDelegate OnGraphsUpdated
return OnScanDelegate

OnGraphsWillBeUpdated public property

public OnVoidDelegate OnGraphsWillBeUpdated
return OnVoidDelegate

OnGraphsWillBeUpdated2 public property

public OnVoidDelegate OnGraphsWillBeUpdated2
return OnVoidDelegate

OnLatePostScan public static property

public static OnScanDelegate OnLatePostScan
return OnScanDelegate

OnPathPostSearch public static property

public static OnPathDelegate OnPathPostSearch
return OnPathDelegate

OnPathPreSearch public static property

public static OnPathDelegate OnPathPreSearch
return OnPathDelegate

OnPostScan public static property

public static OnScanDelegate OnPostScan
return OnScanDelegate

OnPreScan public static property

public static OnScanDelegate OnPreScan
return OnScanDelegate

PathPool public static property

public static Stack PathPool
return Stack

PathsCompleted public static property

public static int PathsCompleted
return int

TotalSearchTime public static property

public static System.Int64 TotalSearchTime
return System.Int64

TotalSearchedNodes public static property

public static System.Int64 TotalSearchedNodes
return System.Int64

active public static property

public static AstarPath active
return AstarPath

astarData public property

public AstarData astarData
return AstarData

colorSettings public property

public AstarColor colorSettings
return AstarColor

debugFloor public property

public float debugFloor
return float

debugMode public property

public GraphDebugMode debugMode
return GraphDebugMode

debugPath public property

public Path debugPath
return Path

debugRoof public property

public float debugRoof
return float

fullGetNearestSearch public property

public bool fullGetNearestSearch
return bool

heuristic public property

public Heuristic heuristic
return Heuristic

heuristicScale public property

public float heuristicScale
return float

inGameDebugPath public property

public string inGameDebugPath
return string

isScanning public property

public bool isScanning
return bool

lastScanTime public property

public float lastScanTime
return float

lastUniqueAreaIndex public property

public int lastUniqueAreaIndex
return int

limitGraphUpdates public property

public bool limitGraphUpdates
return bool

logPathResults public property

public PathLog logPathResults
return PathLog

maxFrameTime public property

public float maxFrameTime
return float

maxGraphUpdateFreq public property

public float maxGraphUpdateFreq
return float

maxNearestNodeDistance public property

public float maxNearestNodeDistance
return float

minAreaSize public property

public int minAreaSize
return int

pathQueue public static property

public static Queue pathQueue
return Queue

pathReturnStack public static property

public static Pathfinding.Util.LockFreeStack pathReturnStack
return Pathfinding.Util.LockFreeStack

prioritizeGraphs public property

public bool prioritizeGraphs
return bool

prioritizeGraphsLimit public property

public float prioritizeGraphsLimit
return float

recyclePaths public property

public bool recyclePaths
return bool

scanOnStartup public property

public bool scanOnStartup
return bool

showGraphs public property

public bool showGraphs
return bool

showNavGraphs public property

public bool showNavGraphs
return bool

showSearchTree public property

public bool showSearchTree
return bool

showUnwalkableNodes public property

public bool showUnwalkableNodes
return bool

stepByStep public property

public bool stepByStep
return bool

threadCount public property

public ThreadCount threadCount
return ThreadCount

threadEnumerator public static property

public static IEnumerator threadEnumerator
return IEnumerator

threadInfos public static property

public static PathThreadInfo[] threadInfos
return PathThreadInfo[]

threads public static property

public static Thread[] threads
return Thread[]

unwalkableNodeDebugSize public property

public float unwalkableNodeDebugSize
return float