コード例 #1
0
 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));
     }
 }
コード例 #2
0
 public CardMovementCollection(Piles.Pile pile, Predicate <Card> predicate, Players.DeckLocation currentLocation, Players.DeckLocation destination)
     : base()
 {
     this.AddRange(pile, predicate, currentLocation, destination);
 }
コード例 #3
0
 public void AddRange(Piles.Pile pile, Players.DeckLocation currentLocation, Players.DeckLocation destination)
 {
     AddRange(pile, c => true, currentLocation, destination);
 }
コード例 #4
0
 public CardMovement(Card card, Players.DeckLocation currentLocation, Players.DeckLocation destination)
 {
     _Card            = card;
     _CurrentLocation = currentLocation;
     _Destination     = destination;
 }