Esempio n. 1
0
 /// <summary>
 /// 是否中某个延迟锦囊
 /// </summary>
 /// <param name="type"></param>
 /// <returns></returns>
 public bool HasDelayKit(int type)
 {
     foreach (AbstractCard c in  checkedCardList)
     {
         IDelayKit d = (IDelayKit)c;
         if (d.GetKitCardType() == type)
         {
             return(true);
         }
     }
     return(false);
 }
        // 判定阶段
        public void Stage_check()
        {
            player.SetStageNum(EStageState.STAGE_CHECK);
            //ViewManagement.getInstance().printMsg(player.getInfo().getName() + "判定");
            //获取判定牌集合
            List <AbstractCard> list = new List <AbstractCard>();

            for (int i = 0; i < player.GetState().GetCheckedCardList().Count(); i++)
            {
                list.Add(player.GetState().GetCheckedCardList().ElementAt(i));
            }
            for (int i = 0; i < list.Count(); i++)
            {
                IDelayKit d = (IDelayKit)list.ElementAt(i);
                d.DoKit();
                //System.out.println(player.toString()+","+player.getState().getCheckedCardList().get(i).toString());


                Thread.Sleep(1000);
            }
        }