Example #1
0
        public DevelopmentCard[] GetDevelopmentCards()
        {
            var cards = new DevelopmentCard[this.cards.Count];

            this.cards.CopyTo(cards, 0);
            return(cards);
        }
Example #2
0
        public void PlayDevelopmentCard(DevelopmentCard card)
        {
            this.HeldCards.Remove(card);
            this.PlayedCards.Add(card);

            if (card is KnightDevelopmentCard)
            {
                this.PlayedKnightCards++;
            }
        }
Example #3
0
        public bool TryGetNextCard(out DevelopmentCard card)
        {
            card = null;
            if (!this.HasCards)
            {
                return(false);
            }

            card = this.cards.Dequeue();
            return(true);
        }
Example #4
0
 public virtual void AddDevelopmentCard(DevelopmentCard developmentCard)
 {
     this.HeldCards.Add(developmentCard);
 }