Exemple #1
0
 public void PlayCardFromHand(Card card)
 {
     if (Hand.Contains(card))
     {
         InPlay.Add(card);
         Hand.Remove(card);
     }
 }
Exemple #2
0
        public void PutCardFromHandIntoPlay(Card card)
        {
            if (!Hand.Contains(card))
            {
                throw new ArgumentOutOfRangeException("Hand does not contain the card " + card);
            }

            Hand.Remove(card);
            _cardsInPlay.Add(card, this);
        }
Exemple #3
0
 public void PutCardFromHandOnTopOfDeck(Card card)
 {
     Hand.Remove(card);
     Player.PlaceCardOnTopOfDeck(card);
 }
Exemple #4
0
 public void TrashCardFromHand(Card cardToTrash, IActionScope scope)
 {
     Hand.Remove(cardToTrash);
     scope.PutCardInTrash(cardToTrash);
 }
Exemple #5
0
 public void moveCard(Card c, Hand origin, List<Card> destination)
 {
     destination.Add(c);
     origin.Remove(c);
 }