public Pathfinding(IPathfindingMap Map, IEnumerable <int> targets, int origin = -1) { this.Map = Map; Nodes = new Node[Map.NodeCount()]; Dijkstra(targets, 0); }
public Pathfinding(IPathfindingMap Map, int target, int origin) { this.Map = Map; Nodes = new Node[Map.NodeCount()]; var watch = System.Diagnostics.Stopwatch.StartNew(); AStar(target, origin, 1000); stat_nbAstar++; stat_timeAstar += watch.ElapsedMilliseconds; }
public Pathfinding(IPathfindingMap Map, IEnumerable<int> targets, int origin = -1) { this.Map = Map; Nodes = new Node[Map.NodeCount()]; Dijkstra(targets, 0); }