public new object Clone() { DeckCard newCard = this.Clone() as DeckCard; newCard.Deck = Deck; return(newCard); }
public DeckCard DrawCard() { if (NeedToDraw == false || DeckHandler.Deck.Count == 0) { return(null); } DeckCard rndCard = DeckHandler.GetRandomCard(); if (rndCard == null) { return(null); // failed to draw? } HandHandler.Deck.Add(rndCard); NeedToDraw = false; return(rndCard); }