C# Class Sharpex2D.Common.Pathfinding.PathFinder

ファイルを表示 Open project: ThuCommix/Sharpex2D

Public Methods

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

Trys to solve a path.

Method Details

TrySolve() public static method

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