/// <summary> /// Player1 win point. /// </summary> public void RafaWinPoint() { if (this.isTieBreak) { this.rafaTieBreakPoints++; this.CheckTieBreak(); } else { this.currentGameScore.RafaWinPoint(); if (this.currentGameScore.RafaGameScore.Points == "game") { this.RafaGamesWon++; this.currentGameScore = new GameScore(); this.UpdateScore(); } } }
/// <summary> /// Player 2 win point. /// </summary> public void JokoWinPoint() { if (isTieBreak) { this.jokoTieBreakPoints++; this.CheckTieBreak(); } else { this.currentGameScore.JokoWinPoint(); if (this.currentGameScore.JokoGameScore.Points == "game") { this.JokoGamesWon++; this.currentGameScore = new GameScore(); this.UpdateScore(); } } }
/// <summary> /// Create a new instance of <c>SetScore</c>. /// </summary> public SetScore() { this.currentGameScore = new GameScore(); this.UpdateScore(); }