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

            this.cards.CopyTo(cards, 0);
            return(cards);
        }
예제 #2
0
파일: Player.cs 프로젝트: toyners/SoC
        public void PlayDevelopmentCard(DevelopmentCard card)
        {
            this.HeldCards.Remove(card);
            this.PlayedCards.Add(card);

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

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