Beispiel #1
0
        public void PlaySelectedCard(Card card)
        {
            //Play the card that is passed in
            //Check if it exists in CardsInHand
            //If so, remove it from CardsInHand, add it to CardsInPlay, and return true
            //Otherwise, return false

            //BVJ TODO: Error handling
            if (card.HasMadness)
            {
                MadnessThisRound++;
            }

            if (card.CardNameEnum == CardNames.Shub_Niggurath && CardsInPlay.CardsInCollection.Count > 0 && CardsPlayedThisRound > 0)
            {
                CardsInPlay.CardsInCollection[CardsInPlay.CardsInCollection.Count - 1].DoubleScore = true;
            }

            CardsInHand.MoveCardToAnotherCollection(card, CardsInPlay);

            CardsPlayedThisRound++;
        }