Exemple #1
0
 /// <summary>
 /// Sets the UI to prevent rolling or selecting score buttons again
 /// and shows the OK button.
 /// </summary>
 public void SetUiForEndOfTurn()
 {
     form.DisableRollButton();
     DisableAllScoreButtons();
     form.ShowMessage("Your turn has ended - click OK");
     form.ShowOkButton();
 }
Exemple #2
0
        public void ScoreCombination(ScoreType scoretype)
        {
            for (int i = 0; i < NUM_OF_DICE; i++)
            {
                diceNum[i] = dice[i].FaceValue;
            }

            currentPlayer.ScoreCombination(scoretype, diceNum);
            currentPlayer.ShowScores();
            form.ShowOkButton();
        }