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); }
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; }