Пример #1
0
        // This helper method prevents the player from keeping an entire sequence
        private void sequenceLock(Roll rRoll, bool bSeq)
        {
            if (bSeq)
            {
                MessageBox.Show(sPlayerName + " got a Sequence!", "Sequence", MessageBoxButtons.OK, MessageBoxIcon.None, MessageBoxDefaultButton.Button1, (MessageBoxOptions)0x40000);

                if (rRoll.iDie1 != iRoundCounter)
                {
                    dwDice.disableDieOne();
                }
                if (rRoll.iDie2 != iRoundCounter)
                {
                    dwDice.disableDieTwo();
                }
                if (rRoll.iDie3 != iRoundCounter)
                {
                    dwDice.disableDieThree();
                }
            }
        }