public WaitingForPlayerMoveState(IPhutballBoard phutballBoard, MovesHistory movesHistory, IPlayersState playersState)
 {
     _phutballBoard = phutballBoard;
     _movesHistory = movesHistory;
     _playersState = playersState;
     _performMoves = new PerformMoves(phutballBoard, playersState);
 }
Пример #2
0
 public BestMoveApplier(IMoveFinders moveFinders,  MovesHistory movesHistory, IFieldsGraph fieldsGraph, IPerformMoves performMoves, IEventPublisher eventPublisher)
 {
     _moveFinders = moveFinders;
     _eventPublisher = eventPublisher;
     _performMoves = performMoves;
     _movesHistory = movesHistory;
     _fieldsGraph = fieldsGraph;
 }
 public PlayerSelectedFieldStateMove(
     IPhutballBoard phutballBoard,
     IPlayersState playersState,
     Field selectedField,
     MovesHistory movesHistory)
 {
     _phutballBoard = phutballBoard;
     _movesHistory = movesHistory;
     _playersState = playersState;
     _performMoves = new PerformMoves(phutballBoard, _playersState);
     _selectedField = selectedField;
 }
Пример #4
0
 public MovesHistoryPresenter(MovesHistory movesHistory, IEventPublisher eventPublisher)
 {
     _movesHistory = movesHistory;
     _eventPublisher = eventPublisher;
     _eventPublisher.Subscribe<MovesHistoryChanged>(OnMovesHistoryChanged);
 }