예제 #1
0
        private void Construct(IGameStatusObserver gameStatusObserver, IGameMaster gameMaster)
        {
            GameStatusObserver = gameStatusObserver.CheckNull();
            GameMaster         = gameMaster.CheckNull();

            GameMaster.OnCompleteGame += OnCompleteGameHandler;
        }
예제 #2
0
 public GamePresenter(IBoardView boardView,
                      IGameMaster gameMaster,
                      IBoardModel boardModel,
                      IBoardViewModel boardViewModel)
 {
     BoardView      = boardView.CheckNull();
     GameMaster     = gameMaster.CheckNull();
     BoardModel     = boardModel.CheckNull();
     BoardViewModel = boardViewModel.CheckNull();
 }
예제 #3
0
 public AiRandomGameControl(IBoardModel boardModel,
                            IFigureModel figureModel,
                            IGameMaster gameMaster,
                            IGameSwitcherTurn gameSwitcherTurn)
 {
     BoardModel       = boardModel.CheckNull();
     FigureModel      = figureModel.CheckNull();
     GameMaster       = gameMaster.CheckNull();
     GameSwitcherTurn = gameSwitcherTurn.CheckNull();
 }
예제 #4
0
 private void Construct(IGameMaster gameMaster, IGameMoveTurnManager gameMoveTurnManager)
 {
     GameMaster          = gameMaster.CheckNull();
     GameMoveTurnManager = gameMoveTurnManager.CheckNull();
 }