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

Inheritance: BasePathSearch
Exibir arquivo Open project: pchote/OpenRA Class Usage Examples

Public Methods

Method Description
Expand ( ) : CPos

This function analyzes the neighbors of the most promising node in the Pathfinding graph using the A* algorithm (A-star) and returns that node

FromPoint ( World world, MobileInfo mi, Actor self, CPos from, CPos target, bool checkForBlocked ) : IPathSearch
FromPoints ( World world, MobileInfo mi, Actor self, IEnumerable froms, CPos target, bool checkForBlocked ) : IPathSearch
Search ( World world, MobileInfo mi, Actor self, bool checkForBlocked, bool>.Func goalCondition ) : IPathSearch

Protected Methods

Method Description
AddInitialCell ( CPos location ) : void

Private Methods

Method Description
LayerPoolForWorld ( World world ) : CellInfoLayerPool
PathSearch ( IGraph graph ) : System

Method Details

AddInitialCell() protected method

protected AddInitialCell ( CPos location ) : void
location CPos
return void

Expand() public method

This function analyzes the neighbors of the most promising node in the Pathfinding graph using the A* algorithm (A-star) and returns that node
public Expand ( ) : CPos
return CPos

FromPoint() public static method

public static FromPoint ( World world, MobileInfo mi, Actor self, CPos from, CPos target, bool checkForBlocked ) : IPathSearch
world World
mi MobileInfo
self Actor
from CPos
target CPos
checkForBlocked bool
return IPathSearch

FromPoints() public static method

public static FromPoints ( World world, MobileInfo mi, Actor self, IEnumerable froms, CPos target, bool checkForBlocked ) : IPathSearch
world World
mi MobileInfo
self Actor
froms IEnumerable
target CPos
checkForBlocked bool
return IPathSearch

Search() public static method

public static Search ( World world, MobileInfo mi, Actor self, bool checkForBlocked, bool>.Func goalCondition ) : IPathSearch
world World
mi MobileInfo
self Actor
checkForBlocked bool
goalCondition bool>.Func
return IPathSearch