コード例 #1
0
 private void SelectField(Field field)
 {
     _movesHistory.PerformAndStore(() => _performMoves, new SelectWhiteFieldMove(field));
     NextState = new PlayerSelectedFieldStateMove(_phutballBoard, _playersState, field, _movesHistory);
 }
コード例 #2
0
 private void PerformJump(Field newSelectedField, IEnumerable<Field> jumpedFields)
 {
     _movesHistory.PerformAndStore(() => _performMoves, new JumpWhiteStoneMove(_selectedField, jumpedFields, newSelectedField));
     NextState = new PlayerSelectedFieldStateMove(_phutballBoard, _playersState , newSelectedField, _movesHistory);
 }
コード例 #3
0
 private void PerformJump(Field newSelectedField, IEnumerable <Field> jumpedFields)
 {
     _movesHistory.PerformAndStore(() => _performMoves, new JumpWhiteStoneMove(_selectedField, jumpedFields, newSelectedField));
     NextState = new PlayerSelectedFieldStateMove(_phutballBoard, _playersState, newSelectedField, _movesHistory);
 }
コード例 #4
0
 private void SelectField(Field field)
 {
     _movesHistory.PerformAndStore(() => _performMoves, new SelectWhiteFieldMove(field));
     NextState = new PlayerSelectedFieldStateMove(_phutballBoard, _playersState, field, _movesHistory);
 }