Esempio n. 1
0
        //clone method
        //returns a new GameDeck object after cloning the cardlist
        public object Clone()
        {
            GameDeck newDeck = new GameDeck(cards.Clone() as CardList);

            return(newDeck);
        }
Esempio n. 2
0
        //clone method
        //returns a clone of playerhand

        public object Clone()
        {
            PlayerHand newplayerHand = new PlayerHand(playerHand.Clone() as CardList);

            return(newplayerHand);
        }
Esempio n. 3
0
        //clones the river cards
        public object Clone()
        {
            GameRiver newGameRiver = new GameRiver(gameRiver.Clone() as CardList);

            return(newGameRiver);
        }