CellsFromPath() public method

public CellsFromPath ( ) : List
return List
Esempio n. 1
0
    public static List <Cell> PathToTarget(this GameMap gm, Cell origin, Cell goal)
    {
        var pathFinder = new AStarPathfinder();

        pathFinder.FindPath(origin, goal, gm.CellGameMap, false);
        return(pathFinder.CellsFromPath());
    }
 public static List<Cell> PathToTarget(this GameMap gm, Cell origin, Cell goal)
 {
     var pathFinder = new AStarPathfinder();
     pathFinder.FindPath(origin, goal, gm.CellGameMap, false);
     return pathFinder.CellsFromPath();
 }