IsType() public method

public IsType ( Dominion.Card card ) : bool
card Dominion.Card
return bool
示例#1
0
        private static PileOfCards GetPile(PileOfCards[] piles, Card cardType)
        {
            for (int i = 0; i < piles.Length; ++i)
            {
                PileOfCards cardPile = piles[i];
                if (cardPile.IsType(cardType))
                {
                    return(cardPile);
                }
            }

            return(null);
        }
示例#2
0
        private PileOfCards GetPile(Card cardType)
        {
            for (int i = 0; i < this.supplyPiles.Length; ++i)
            {
                PileOfCards cardPile = this.supplyPiles[i];
                if (cardPile.IsType(cardType))
                {
                    return(cardPile);
                }
            }

            return(null);
        }