public GameParameters(int FinishScore, int ServesForOnePlayer) { switch (FinishScore) { case 11: this.FinishScoreValue = GameParameters.FinishScore.Score11; break; case 21: this.FinishScoreValue = GameParameters.FinishScore.Score21; break; default: throw new InvalidOperationException(); } switch (ServesForOnePlayer) { case 2: this.ServesForOnePlayerValue = GameParameters.ServesForOnePlayer.Serves2; break; case 5: this.ServesForOnePlayerValue = GameParameters.ServesForOnePlayer.Serves5; break; default: throw new InvalidOperationException(); } }
public GameParameters(FinishScore arg, ServesForOnePlayer arg2) { this.FinishScoreValue = arg; this.ServesForOnePlayerValue = arg2; }
public GameParameters() { this.FinishScoreValue = FinishScore.Score21; this.ServesForOnePlayerValue = ServesForOnePlayer.Serves5; }