Example #1
0
        public int GetRemainingCount(int cardId, int initialCount)
        {
            int remaining = initialCount;

            remaining = remaining - Hand.Count(card => card != null && card.IsCode(cardId));
            remaining = remaining - SpellZone.Count(card => card != null && card.IsCode(cardId));
            remaining = remaining - Graveyard.Count(card => card != null && card.IsCode(cardId));
            remaining = remaining - Banished.Count(card => card != null && card.IsCode(cardId));
            return((remaining < 0) ? 0 : remaining);
        }
Example #2
0
 public void Clear()
 {
     Deck.Clear();
     ExtraDeck.Clear();
     Hand.Clear();
     Banished.Clear();
     Graveyard.Clear();
     MonsterZone = new ClientCard[7];
     SpellZone   = new ClientCard[8];
 }