예제 #1
0
 public bool CanDiscard(Card card)
 {
     return this.hand.Cards.Contains(card);
 }
예제 #2
0
 public void Discard(Card card)
 {
     if (CanDiscard(card))
         card.Discard();
 }
 public void Discard(Card card)
 {
     discardManager.Discard(card);
     NotifyPropertyChanged("Cards");
 }
 public bool CanDiscard(Card card)
 {
     return discardManager.CanDiscard(card);
 }
예제 #5
0
 internal void RemoveFromHand(Card card)
 {
     card.Discarded -= cardDiscarded;
     cards.Remove(card);
     if (HandChanged != null) HandChanged(this, EventArgs.Empty);
 }
예제 #6
0
 internal void AddToHand(Card card)
 {
     card.Discarded += cardDiscarded;
     cards.Add(card);
     if (HandChanged != null) HandChanged(this, EventArgs.Empty);
 }
 public DiscardedEventArgs(Card card)
 {
     this.card = card;
 }