public CardPile(Card card, int num) { cards = new List <Card>(); cardTemplate = card; for (int i = 0; i < num; i++) { cards.Add(card.cloneCard()); } }
public void addAnotherCard() { cards.Add(cardTemplate.cloneCard()); }
public CardPile(Card card, int num) { cards = new List <Card>(); cardTemplate = card; for (int i = 0; i < num; i++) { cards.Add(card.cloneCard()); } }
public void addAnotherCard() { cards.Add(cardTemplate.cloneCard()); }