Beispiel #1
0
 /// <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();
         }
     }
 }
Beispiel #2
0
 /// <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();
         }
     }
 }
Beispiel #3
0
 /// <summary>
 /// Create a new instance of <c>SetScore</c>.
 /// </summary>
 public SetScore()
 {
     this.currentGameScore = new GameScore();
     this.UpdateScore();
 }