C# Class Sharpex2D.Common.Pathfinding.AStar.AStarAlgorithm

Inheritance: IAlgorithm
显示文件 Open project: ThuCommix/Sharpex2D

Public Methods

Method Description
TrySolve ( Grid grid, GridField startField, GridField targetField, Stack &path ) : bool

Trys to solve a path.

Method Details

TrySolve() public method

Trys to solve a path.
public TrySolve ( Grid grid, GridField startField, GridField targetField, Stack &path ) : bool
grid Grid The Grid.
startField GridField The Startfield.
targetField GridField The Targetfield.
path Stack Out of Positions.
return bool