Пример #1
0
 /// <summary>
 /// 判断手牌不含有<value>type</value>的卡牌
 /// </summary>
 /// <param name="type">卡牌类型</param>
 /// <returns></returns>
 public bool NotObtain(AbstractCard.CardType type)
 {
     return(_deck.All(card => !card.HasType(type)));
 }
Пример #2
0
 /// <summary>
 /// 判断手牌是否只含有<value>type</value>的卡牌
 /// </summary>
 /// <param name="type">卡牌类型</param>
 /// <returns></returns>
 public bool OnlyObtain(AbstractCard.CardType type)
 {
     return(_deck.All(card => card.Type == type));
 }