예제 #1
0
        private void Construct(IFigureCreator figureCreator, IFigureController figureController)
        {
            _figureDefsToTransform.CheckNull();
            Assert.IsTrue(_blackLastRow != BoardCellRow.None);
            Assert.IsTrue(_whiteLastRow != BoardCellRow.None);

            FigureCreator    = figureCreator.CheckNull();
            FigureController = figureController.CheckNull();
        }
예제 #2
0
 public BoardPreparation(IBoardCreator boardCreator,
                         IFigureCreator figureCreator,
                         IBoardModel boardModel,
                         IFigureController figureController)
 {
     BoardCreator     = boardCreator.CheckNull();
     FigureCreator    = figureCreator.CheckNull();
     BoardModel       = boardModel.CheckNull();
     FigureController = figureController.CheckNull();
 }
예제 #3
0
 public FigurePresenter(IBoardViewModel boardViewModel,
                        IFigureController figureController,
                        IFigureViewModel figureViewModel,
                        IFigureViewFactory figureViewFactory)
 {
     BoardViewModel    = boardViewModel.CheckNull();
     FigureController  = figureController.CheckNull();
     FigureViewModel   = figureViewModel.CheckNull();
     FigureViewFactory = figureViewFactory.CheckNull();
 }
예제 #4
0
 public GameMaster(IFigureController figureController,
                   IBoardModel boardModel,
                   IGameModel gameModel,
                   IFigurePostTurnLogicManager figurePostTurnLogicManager,
                   IGameMoveTurnManager gameMoveTurnManager)
 {
     FigureController           = figureController.CheckNull();
     BoardModel                 = boardModel.CheckNull();
     GameModel                  = gameModel.CheckNull();
     FigurePostTurnLogicManager = figurePostTurnLogicManager.CheckNull();
     GameMoveTurnManager        = gameMoveTurnManager.CheckNull();
 }