//private SettingsOutputMessage settingsOutputMessage;

        public SettingsUserControl(MazeSettings mazeSettings)
        {
            InitializeComponent();
            this.mazeSettings = mazeSettings;
            opacityFade       = new OpacityFade(this);
            opacityFade.StartAnimation(true);
            DataContext = mazeSettings;
        }
        public DfsSolver(MazeDrawer mazeDrawer, MazeSettings mazeSettings, SliderValue sleep)
        {
            this.mazeDrawer   = mazeDrawer;
            this.mazeSettings = mazeSettings;
            this.sleep        = sleep;

            DrawStartCell();
            DrawEndCell();
        }
Exemple #3
0
 public Dfs(MazeDrawer mazeDrawer, BackgroundWorker backgroundWorker, SliderValue sleep, MazeSettings mazeSettings)
 {
     this.mazeDrawer       = mazeDrawer;
     this.backgroundWorker = backgroundWorker;
     this.sleep            = sleep;
     this.mazeSettings     = mazeSettings;
     SetVar();
     SetListOfUnvisitedCell(mazeDrawer);
 }
Exemple #4
0
 public MazeDrawer(MazeSettings mazeSettings)
 {
     this.mazeSettings = mazeSettings;
 }
 private void CreateMazeDrawerAndEngine()
 {
     mazeSettings = new MazeSettings();
     mazeDrawer   = new MazeDrawer(mazeSettings);
     mazeEngine   = new MazeEngine(mazeDrawer, mazeSettings);
 }
Exemple #6
0
 public MazeEngine(MazeDrawer mazeDrawer, MazeSettings mazeSettings)
 {
     this.mazeDrawer   = mazeDrawer;
     this.mazeSettings = mazeSettings;
     CreateBackgroundWorker();
 }