Esempio n. 1
0
        /// <summary>
        /// Processes the AI and human player's turn. Called when a card is added to the BoutDeckViewer.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void OnNextTurn(object sender, EventArgs e)
        {
            NextTurn();
            if (boutDeckViewer.isFull())
            {
                EndBout();
            }

            //Update cards if needed
            this.boutDeckViewer.AdjustCards();
            this.drawDeckViewer.AdjustCards();
            this.playerDeckViewer.AdjustCards();
            this.enemyDeckViewer.AdjustCards();
            canPlaceCard();
        }