Пример #1
0
 public void TakePile(IEnumerable <PlayingCard> pile)
 {
     foreach (var card in pile)
     {
         OwnedCards.Add(card);
     }
 }
Пример #2
0
        public State PlayCard(Card card)
        {
            if (HandOccupations.Contains(card))
            {
                HandOccupations = HandOccupations.Remove(card);
            }
            else if (HandMinors.Contains(card))
            {
                HandMinors = HandMinors.Remove(card);
            }
            else
            {
                return(State);
            }

            OwnedCards = OwnedCards.Add(card);
            return(State);
        }
Пример #3
0
 public State AddMajorImprovement(int id)
 {
     MajorImprovements = MajorImprovements.Add(id);
     OwnedCards        = OwnedCards.Add(Curator.GetMajorImprovement(id));
     return(State);
 }