Class AStarPathfinding
Implementation class for the A* Pathfinding algorithm.
This algorith takes an admissible heuristic, and uses it to find the shortest path
Inheritance
AStarPathfinding
Assembly: Sylves.dll
Syntax
public class AStarPathfinding
Constructors
AStarPathfinding(IGrid, Cell, Func<Step, float?>, Func<Cell, float>)
Declaration
public AStarPathfinding(IGrid grid, Cell src, Func<Step, float?> stepLengths, Func<Cell, float> heuristic)
Parameters
Methods
Declaration
public CellPath ExtractPathTo(Cell target)
Parameters
| Type |
Name |
Description |
| Cell |
target |
|
Returns
Run(Cell)
Declaration
public void Run(Cell target)
Parameters
| Type |
Name |
Description |
| Cell |
target |
|