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); }
public void Clear() { Deck.Clear(); ExtraDeck.Clear(); Hand.Clear(); Banished.Clear(); Graveyard.Clear(); MonsterZone = new ClientCard[7]; SpellZone = new ClientCard[8]; }