/// <summary>
        /// 返回对指定牌的可抄作集合
        /// </summary>
        /// <param name="card"></param>
        /// <returns></returns>
        internal OptionorCollection GetOptionorsOf(Card card)
        {
            OptionorCollection optionorCollection = new OptionorCollection();
            var myOptions = Options.FindAll(c => c.Card.IsTheSameWith(card));

            optionorCollection.Options.AddRange(myOptions);
            return(optionorCollection);
        }
예제 #2
0
 HandCardManager()
 {
     StandCards = new StandCardsCollection();
     SleepCards = new SleepMaJiangsCollection();
     Optionors  = new OptionorCollection();
 }