Esempio n. 1
0
        public AStar(GraphBoard board) : base(board)
        {
            board.StartNode.Distance = 0;

            _sortedList = new List <Node>();
            _sortedList.AddRange(board.Nodes.Where(x => x.Type != NodeType.Obstacle));
            _sortedList.Sort(new AStarNodeComparer(board.GoalNode));
        }
Esempio n. 2
0
 protected PathfindingAlgorithm(GraphBoard board)
 {
     Board = board;
 }