Exemplo n.º 1
0
 public void RemoveFromPile()
 {
     if (CurrentCard.Deck == 0)
     {
         throw new BasicBlankException("Cannot remove from discard because there are no cards to remove");
     }
     if (_objectList.Count == 0)
     {
         _previousNum = 0;
         CurrentCard  = new D();
         _thisE.NewCardMessage(EnumNewCardCategories.Discard);
         return;
     }
     CurrentCard = _objectList.Last();
     _objectList.RemoveLastItem();
     _previousNum = _objectList.Count;
 }