Пример #1
0
 private void onSceneUpdated(Scene sender)
 {
     // Update the GUI
     UpdateForm();
 }
Пример #2
0
        private void onSceneEnded(Scene sender)
        {
            // Disable the roll dice button and next turn button
            rollDiceButton.Enabled = false;
            nextTurnButton.Enabled = false;

            if (game.AmountOfPlayers != 1)
            {
                MessageBox.Show("The winner is: " + game.Winner.Name, "Notice", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
            }
        }
Пример #3
0
        private void onSceneStarted(Scene sender)
        {
            // disable the nextTurnButton
            nextTurnButton.Enabled = false;

            // Enable the roll dice button
            rollDiceButton.Enabled = true;

            currentTurnLabel.Text = "1";
            currentRollLabel.Text = "0";
        }
Пример #4
0
 /// <summary>
 /// An event that happens when the BonesGameScene turn has ended.
 /// </summary>
 private void onBonesGameSceneTurnEnded(Scene sender)
 {
     rollDiceButton.Enabled = false;
     nextTurnButton.Enabled = true;
 }