private void radioButton1_CheckedChanged(object sender, EventArgs e) { RadioButton rb = sender as RadioButton; if (!rb.Checked) { return; } algorithm = (AlgType)rb.TabIndex; }
public PathFinder(Cell start, Cell finish, Map[,] map, AlgType algorithm, int timeWait) { OpenList = new List <Map>(100); CloseList = new List <Map>(100); this.start = start; this.finish = finish; this.map = map; this.algorithm = algorithm; searchingThread = new Thread(this.Run); searchingThread.Start(); time = timeWait; }
public PathFinder(Cell start, Cell finish, Map[,] map, AlgType algorithm, int WaitTimeOut) { OpenList = new List <Map>(100); CloseList = new List <Map>(100); this.start = start; this.finish = finish; this.map = map; this.algorithm = algorithm; this.waitTimeOut = WaitTimeOut; searchingThread = new Thread(this.Run); searchingThread.Name = "Path searching thread"; searchingThread.Start(); }
public OldDiplomAlgorithm(int _heap_size, AlgType _type = AlgType.Best) { heap_size = _heap_size; type = _type; }