public void AddRange(Piles.Pile pile, Predicate <Card> predicate, Players.DeckLocation currentLocation, Players.DeckLocation destination) { foreach (Card card in pile[predicate]) { this.Add(new CardMovement(card, currentLocation, destination)); } }
public void AddRange(Piles.Pile pile, Players.DeckLocation currentLocation, Players.DeckLocation destination) { AddRange(pile, c => true, currentLocation, destination); }
public CardMovementCollection(Piles.Pile pile, Predicate <Card> predicate, Players.DeckLocation currentLocation, Players.DeckLocation destination) : base() { this.AddRange(pile, predicate, currentLocation, destination); }