C# Class OpenRA.Mods.Common.Pathfinder.BasePathSearch

Inheritance: IPathSearch
Exibir arquivo Open project: pchote/OpenRA

Protected Properties

Property Type Description
StartPoints IPriorityQueue
heuristic int>.Func
isGoal bool>.Func

Public Methods

Method Description
Dispose ( ) : void
Expand ( ) : CPos
FromPoint ( CPos from ) : IPathSearch
IsTarget ( CPos location ) : bool
Reverse ( ) : IPathSearch
WithCustomBlocker ( bool>.Func customBlock ) : IPathSearch
WithCustomCost ( int>.Func w ) : IPathSearch
WithHeuristic ( int>.Func h ) : IPathSearch
WithIgnoredActor ( Actor b ) : IPathSearch
WithoutLaneBias ( ) : IPathSearch

Protected Methods

Method Description
AddInitialCell ( CPos cell ) : void
BasePathSearch ( IGraph graph ) : System
DefaultEstimator ( CPos destination ) : int>.Func

Default: Diagonal distance heuristic. More information: http://theory.stanford.edu/~amitp/GameProgramming/Heuristics.html

Dispose ( bool disposing ) : void

Method Details

AddInitialCell() protected abstract method

protected abstract AddInitialCell ( CPos cell ) : void
cell CPos
return void

BasePathSearch() protected method

protected BasePathSearch ( IGraph graph ) : System
graph IGraph
return System

DefaultEstimator() protected static method

Default: Diagonal distance heuristic. More information: http://theory.stanford.edu/~amitp/GameProgramming/Heuristics.html
protected static DefaultEstimator ( CPos destination ) : int>.Func
destination CPos
return int>.Func

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Expand() public abstract method

public abstract Expand ( ) : CPos
return CPos

FromPoint() public method

public FromPoint ( CPos from ) : IPathSearch
from CPos
return IPathSearch

IsTarget() public method

public IsTarget ( CPos location ) : bool
location CPos
return bool

Reverse() public method

public Reverse ( ) : IPathSearch
return IPathSearch

WithCustomBlocker() public method

public WithCustomBlocker ( bool>.Func customBlock ) : IPathSearch
customBlock bool>.Func
return IPathSearch

WithCustomCost() public method

public WithCustomCost ( int>.Func w ) : IPathSearch
w int>.Func
return IPathSearch

WithHeuristic() public method

public WithHeuristic ( int>.Func h ) : IPathSearch
h int>.Func
return IPathSearch

WithIgnoredActor() public method

public WithIgnoredActor ( Actor b ) : IPathSearch
b Actor
return IPathSearch

WithoutLaneBias() public method

public WithoutLaneBias ( ) : IPathSearch
return IPathSearch

Property Details

StartPoints protected_oe property

protected IPriorityQueue StartPoints
return IPriorityQueue

heuristic protected_oe property

protected Func heuristic
return int>.Func

isGoal protected_oe property

protected Func isGoal
return bool>.Func