Beispiel #1
0
        //clone method


        public object Clone()
        {
            PlayerCard newplayerHand = new PlayerCard(playerCard.Clone() as CardList);

            return(newplayerHand);
        }
Beispiel #2
0
        //clone method

        public object Clone()
        {
            Deck newDeck = new Deck(cards.Clone() as CardList);

            return(newDeck);
        }
Beispiel #3
0
        //clones the center cards
        public object Clone()
        {
            CenterCards newGameCenter = new CenterCards(gameCenter.Clone() as CardList);

            return(newGameCenter);
        }