Esempio n. 1
0
        public Minesweeper(IMinefieldFactory minefield_factory, GameOptions game_options)
        {
            _game_id = game_options.player_id;

            DomainEvents.raise(new MinesweeperGameStarted(_game_id));

            _minefield = minefield_factory.create_a_mindfield_with_these_options(game_options, _game_id);
        }
Esempio n. 2
0
        public Minesweeper(IMinefieldFactory minefield_factory, GameOptions game_options)
        {
            _game_id = game_options.player_id;

            DomainEvents.raise(new MinesweeperGameStarted(_game_id));

            _minefield = minefield_factory.create_a_mindfield_with_these_options(game_options, _game_id);
        }
Esempio n. 3
0
        public MainWindowViewModel(IMinefieldFactory minefieldFactory,
                                   IDialogService dialogService, INavigationService navigationService)
        {
            this.navigationService = navigationService;
            this.minefieldFactory  = minefieldFactory;
            this.dialogService     = dialogService;

            gameConfig = new GameConfig();
            gameConfig.SetMedium();
            Minefield = minefieldFactory.CreateNew(gameConfig);
        }
 public MinesweeperFactory(IMinefieldFactory minefield_factory)
 {
     _minefield_factory = minefield_factory;
 }
Esempio n. 5
0
 public MinesweeperFactory(IMinefieldFactory minefield_factory)
 {
     _minefield_factory = minefield_factory;
 }