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

Inheritance: BasePathSearch
Afficher le fichier Open project: pchote/OpenRA Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
AddInitialCell ( CPos location ) : void

Private Methods

Méthode Description
LayerPoolForWorld ( World world ) : CellInfoLayerPool
PathSearch ( IGraph graph ) : System

Method Details

AddInitialCell() protected méthode

protected AddInitialCell ( CPos location ) : void
location CPos
Résultat void

Expand() public méthode

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
Résultat CPos

FromPoint() public static méthode

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
Résultat IPathSearch

FromPoints() public static méthode

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
Résultat IPathSearch

Search() public static méthode

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
Résultat IPathSearch