public void UpdateMap(ISpread<int> mapSize, ISpread<bool> map ) { FSizeX = mapSize[0]; FSizeY = mapSize[1]; FPathFinder = new Pathfinder(mapSize[0], mapSize[1], map); FPathFinder.SetLogger(FLogger); FPathes.Clear(); foreach( Slot slot in FSlots.Values ) { slot.SetRendered(false); } }
public void FindPath(Pathfinder finder) { path = finder.FindPath( startNode, targetNode, maxHeapSize ); }