Exemplo n.º 1
0
        private void radioButton1_CheckedChanged(object sender, EventArgs e)
        {
            RadioButton rb = sender as RadioButton;

            if (!rb.Checked)
            {
                return;
            }
            algorithm = (AlgType)rb.TabIndex;
        }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
 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();
 }
Exemplo n.º 4
0
 public OldDiplomAlgorithm(int _heap_size, AlgType _type = AlgType.Best)
 {
     heap_size = _heap_size;
     type      = _type;
 }