Beispiel #1
0
 public Cell(Cell left, Cell right, Cell up, Cell Down, KindCell kindCell)
 {
     _env.Add(Direction.LEFT, left);
     _env.Add(Direction.RIGHT, right);
     _env.Add(Direction.UP, up);
     _env.Add(Direction.DOWN, Down);
     _kindCell = kindCell;
 }
Beispiel #2
0
 public Cell(char carKindCell)
 {
     if (carKindCell == 's')
     {
         _kindCell = KindCell.START;
     }
     if (carKindCell == 'e')
     {
         _kindCell = KindCell.END;
     }
     if (carKindCell == '.')
     {
         _kindCell = KindCell.EMPTY;
     }
     if (carKindCell == 'x')
     {
         _kindCell = KindCell.WALL;
     }
 }
Beispiel #3
0
 public void setKindCell(KindCell kindCell)
 {
     _kindCell = kindCell;
 }
Beispiel #4
0
 public Cell(KindCell kindCell)
 {
     _kindCell = kindCell;
 }
Beispiel #5
0
 public void changeKindCellUpdateAndWait(Cell cell, KindCell newKindCell, MainWindow win, int timeSleepMS)
 {
     cell.setKindCell(newKindCell);
     win.updateCell(cell);
     Thread.Sleep(timeSleepMS);
 }