private void SelectField(Field field)
 {
     _movesHistory.PerformAndStore(() => _performMoves, new SelectWhiteFieldMove(field));
     NextState = new PlayerSelectedFieldStateMove(_phutballBoard, _playersState, field, _movesHistory);
 }
 private void PerformJump(Field newSelectedField, IEnumerable<Field> jumpedFields)
 {
     _movesHistory.PerformAndStore(() => _performMoves, new JumpWhiteStoneMove(_selectedField, jumpedFields, newSelectedField));
     NextState = new PlayerSelectedFieldStateMove(_phutballBoard, _playersState , newSelectedField, _movesHistory);
 }
Beispiel #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);
 }
Beispiel #4
0
 private void SelectField(Field field)
 {
     _movesHistory.PerformAndStore(() => _performMoves, new SelectWhiteFieldMove(field));
     NextState = new PlayerSelectedFieldStateMove(_phutballBoard, _playersState, field, _movesHistory);
 }