Exemplo n.º 1
0
        /// <summary>
        /// Draws a card and adds it to the hand
        /// </summary>
        /// <param name="hand"></param>
        public void DrawACardFromBottom(Hand hand)
        {
            var index = MainDeckCards.Count() - 1;
            var card  = MainDeckCards[index];

            card.Location = Yugioh.CardLocation.Hand;
            hand.Add(card);
            MainDeckCards.RemoveAt(index);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Draws a card and adds it to the hand
        /// </summary>
        /// <param name="hand"></param>
        public Card DrawACardFromTop(Hand hand)
        {
            var card = MainDeckCards[0];

            card.Location = Yugioh.CardLocation.Hand;
            hand.Add(card);
            MainDeckCards.RemoveAt(0);
            return(card);
        }