示例#1
0
        public new object Clone()
        {
            DeckCard newCard = this.Clone() as DeckCard;

            newCard.Deck = Deck;

            return(newCard);
        }
示例#2
0
        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);
        }