Exemple #1
0
 public GameFlowFacade(
     IUpdateBoardView boardViewUpdater, Func <IHandlePlayerInteraction> gameStateFactoryMethod)
 {
     _boardViewUpdater       = boardViewUpdater;
     _gameStateFactoryMethod = gameStateFactoryMethod;
     _interactionHandler     = _gameStateFactoryMethod();
 }
Exemple #2
0
 public BoardManager(BoardCoordinates boundingCoordinates, IUpdateBoardView boardViewUpdater)
 {
     _boundingCoordinates = boundingCoordinates;
     _boardViewUpdater    = boardViewUpdater;
 }
 public GameFlowBuilder WithBoardViewUpdater(IUpdateBoardView updater)
 {
     _boardViewUpdater = updater;
     return(this);
 }