Exemple #1
0
        public static GamePreset Initialize()
        {
            var gamePreset = new GamePreset();

            gamePreset.Reload();
            return(gamePreset);
        }
Exemple #2
0
        internal static GameProcess Initialize(GamePreset gamePreset, Window appWindow)
        {
            var gameProcess = new GameProcess(gamePreset, appWindow);

            gameProcess.Load();
            return(gameProcess);
        }
Exemple #3
0
 private GameProcess(GamePreset gamePreset, Window appWindow)
     : this()
 {
     _gamePreset = gamePreset;
     _appWindow  = appWindow;
     _appWindow.LocationChanged += WindowChanged;
     _appWindow.SizeChanged     += WindowChanged;
     Board = new CellType[_gamePreset.Rows, _gamePreset.Columns];
 }
Exemple #4
0
 private void InitializePresetTab()
 {
     _gamePreset = GamePreset.Initialize();
     UpdatePresetControls();
 }