public void TakePile(IEnumerable <PlayingCard> pile) { foreach (var card in pile) { OwnedCards.Add(card); } }
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); }
public State AddMajorImprovement(int id) { MajorImprovements = MajorImprovements.Add(id); OwnedCards = OwnedCards.Add(Curator.GetMajorImprovement(id)); return(State); }