コード例 #1
0
 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;
 }
コード例 #3
0
 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);
 }