Example #1
0
        /// <summary>
        /// Starts turn by adding a card from the main deck to the player's board.
        /// If the player has stood, instead they skip they're turn
        /// also sets IsActive to true
        /// </summary>
        public void BeginTurn()
        {
            if (HasStood)
            {
                EndTurn();
            }
            else
            {
                //MessageBox.Show("Click OK when you are ready to start your turn", "Next Turn", MessageBoxButton.OK);
                TurnTransitionControl ttc = new TurnTransitionControl();

                ttc.StartCountDown(2);
                ttc.ShowDialog();

                IsActive = true;

                Board.AddCard(MainDeck.DrawNextCard());

                if (Board.Sum == 20)
                {
                    HasStood = true;
                    EndTurn();
                }
            }
        }