當前位置: 首頁>>代碼示例>>C#>>正文


C# Board.IsCombo方法代碼示例

本文整理匯總了C#中Board.IsCombo方法的典型用法代碼示例。如果您正苦於以下問題:C# Board.IsCombo方法的具體用法?C# Board.IsCombo怎麽用?C# Board.IsCombo使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Board的用法示例。


在下文中一共展示了Board.IsCombo方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: OnPlay

 public override void OnPlay(ref Board board, Card target = null,int index = 0,int choice = 0)
 {
     base.OnPlay(ref board, target,index);
     board.HeroEnemy.Damage(2 + board.GetSpellPower(),ref board);
     if (board.IsCombo())
         board.Hand.Add(Card.Create("EX1_137", true, Id));
 }
開發者ID:jrgutier,項目名稱:SmartCC,代碼行數:7,代碼來源:EX1_137.cs

示例2: OnPlay

 public override void OnPlay(ref Board board, Card target = null,int index = 0,int choice = 0)
 {
     base.OnPlay(ref board, target,index);
     if(target != null)
     {
         if (board.IsCombo())
             target.Damage(2, ref board);
     }
 }
開發者ID:jrgutier,項目名稱:SmartCC,代碼行數:9,代碼來源:EX1_134.cs

示例3: OnPlay

 public override void OnPlay(ref Board board, Card target = null,int index = 0,int choice = 0)
 {
     base.OnPlay(ref board, target,index);
     if(target != null)
     {
         if(board.IsCombo())
         {
             target.Damage(4 + board.GetSpellPower(), ref board);
         }
         else
         {
             target.Damage(2 + board.GetSpellPower(), ref board);
         }
     }
 }
開發者ID:jrgutier,項目名稱:SmartCC,代碼行數:15,代碼來源:EX1_124.cs

示例4: OnPlay

        public override void OnPlay(ref Board board, Card target = null,int index = 0,int choice = 0)
        {
            base.OnPlay(ref board, target, index);

            if (target != null)
            {
                if (board.IsCombo())
                {
                    target.currentAtk += 4;
                }
                else
                {
                    target.currentAtk += 2;
                }

            }
        }
開發者ID:jrgutier,項目名稱:SmartCC,代碼行數:17,代碼來源:CS2_073.cs

示例5: OnPlay

        public override void OnPlay(ref Board board, Card target = null,int index = 0,int choice = 0)
        {
            base.OnPlay(ref board, target,index);

            if (!board.IsCombo())
                return;

            int cardsplayed = 0;
            foreach(Action a in board.ActionsStack)
            {
                if (a.Type == Action.ActionType.CAST_MINION || a.Type == Action.ActionType.CAST_SPELL || a.Type == Action.ActionType.CAST_WEAPON)
                {
                    cardsplayed++;
                }
            }

            board.GetCard(Id).currentAtk += 2 * cardsplayed;
            board.GetCard(Id).CurrentHealth += 2 * cardsplayed;
            board.GetCard(Id).maxHealth += 2 * cardsplayed;
        }
開發者ID:jrgutier,項目名稱:SmartCC,代碼行數:20,代碼來源:EX1_613.cs


注:本文中的Board.IsCombo方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。