Ejemplo n.º 1
0
        public CardList PickHand(Random inR, int num_cards)
        {
            int final_cards = mDeck.Cards.Count - num_cards;

            while (mDeck.Cards.Count > final_cards && mDeck.Cards.Count > 0)
            {
                int    index = inR.Next(0, mDeck.Cards.Count);
                Entity temp  = mDeck.Cards[index];
                mDeck.RemoveCard(temp);
                mHand.AddCard(temp);
            }
            return(mHand);
        }
Ejemplo n.º 2
0
 public Entities.Entity MulliganCard(System.Random inR, Entity mulliganCard)
 {
     Entities.Entity newCard = null;
     if (mDeck.Cards.Any())
     {
         mHand.RemoveCard(mulliganCard);
         mMulliganedCards.AddCard(mulliganCard);
         newCard = mDeck.Cards[inR.Next(0, mDeck.Cards.Count)];
         mDeck.RemoveCard(newCard);
         mHand.AddCard(newCard);
         mMulligansUsed++;
     }
     return(newCard);
 }
Ejemplo n.º 3
0
 public void RemoveFromList(Entity C)
 {
     mDeck.RemoveCard(C);
     mHand.RemoveCard(C);
     mGraveyard.RemoveCard(C);
     for (int i = 0; i < mBoard.RangeZones.Length; i++)
     {
         mBoard.RangeZones[i].List.RemoveCard(C);
     }
 }