public bool IsType(Card card) { return card.IsType(this.protoType); }
private static PileOfCards GetPile(PileOfCards[] piles, Card cardType) { for (int i = 0; i < piles.Length; ++i) { PileOfCards cardPile = piles[i]; if (cardPile.IsType(cardType)) { return(cardPile); } } return(null); }