Example #1
0
 /// <summary>
 /// 玩家加血 -- 调用加血触发事件
 /// </summary>
 /// <param name="num"></param>
 public void AddHP(int num)
 {
     player.GetState().SetCurHP(player.GetState().GetCurHP() + num);
     if (player.GetState().GetCurHP() > player.GetInfo().GetMaxHP())
     {
         player.GetState().SetCurHP(player.GetInfo().GetMaxHP());
     }
     // 调用加血触发
     player.GetTrigger().AfterAddHP();
 }
 //下家开始
 private void Pass()
 {
     //if(Frame_Main.isGameOver){
     //    return;
     //}
     Console.WriteLine(player.GetInfo().GetName() + "pass");
     Thread.Sleep(800);
     //ViewManagement.getInstance().refreshAll();
     player.GetNextPlayer().Process();
 }
 public void Stage_addCards()
 {
     //AI操作
     if (player.GetState().IsAI())
     {
         if (player.GetInfo().GetName() == "")
         {
         }
     }
 }
 /// <summary>
 /// 是否满血
 /// </summary>
 /// <returns></returns>
 public bool IsFullHP()
 {
     return(player.GetState().GetCurHP() == player.GetInfo().GetMaxHP());
 }
 /// <summary>
 /// 是否同一国家
 /// </summary>
 /// <param name="target"></param>
 /// <returns></returns>
 public bool IsSameCountry(AbstractPlayer target)
 {
     return(player.GetInfo().GetCountry() == target.GetInfo().GetCountry());
 }
Example #6
0
        /// <summary>
        /// 忠臣喷主公
        /// </summary>
        public static void sayFuckBoss(AbstractPlayer speaker)
        {
            string word = "[AI]" + speaker.GetInfo().GetName() + ":你个SB主公";

            ViewManagement.Instance.printChatMsg(word);
        }