当前位置: 首页>>代码示例>>C#>>正文


C# Playfield.getMinionHeal方法代码示例

本文整理汇总了C#中HRSim.Playfield.getMinionHeal方法的典型用法代码示例。如果您正苦于以下问题:C# Playfield.getMinionHeal方法的具体用法?C# Playfield.getMinionHeal怎么用?C# Playfield.getMinionHeal使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在HRSim.Playfield的用法示例。


在下文中一共展示了Playfield.getMinionHeal方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: getBattlecryEffect

        //   Battlecry: Restore 8 Health to your hero.

        public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
        {
            if (own.own)
            {
                int heal = p.getMinionHeal(8, own.own);
                p.minionGetDamageOrHeal(p.playerFirst.ownHero, -heal, true);
            }
            else
            {
                int heal = p.getMinionHeal(8, own.own);
                p.minionGetDamageOrHeal(p.playerSecond.ownHero, -heal, true);
            }
        }
开发者ID:shuyi3,项目名称:AIPJ,代码行数:15,代码来源:Sim_GvG_069.cs

示例2: onTurnStartTrigger

        // <deDE>Stellt zu Beginn Eures Zuges bei einem verletzten befreundeten Charakter 3 Leben wieder her.</deDE>
        public override void onTurnStartTrigger(Playfield p, Minion triggerEffectMinion, bool turnStartOfOwner)
        {
            if (turnStartOfOwner == triggerEffectMinion.own)
            {
                int heal = p.getMinionHeal(3, turnStartOfOwner);
                List<Minion> temp = (turnStartOfOwner) ? p.playerFirst.ownMinions : p.playerSecond.ownMinions;
                if (temp.Count >= 1)
                {
                    bool healed = false;
                    foreach (Minion mins in temp)
                    {
                        if (mins.wounded)
                        {
                            p.minionGetDamageOrHeal(mins, -heal);
                            healed = true;
                            break;
                        }
                    }

                    if (!healed)
                    {
                        p.minionGetDamageOrHeal(turnStartOfOwner ? p.playerFirst.ownHero : p.playerSecond.ownHero, -heal);
                    }
                }
                else
                {
                    p.minionGetDamageOrHeal(turnStartOfOwner ? p.playerFirst.ownHero : p.playerSecond.ownHero, -heal);
                }

            }
        }
开发者ID:shuyi3,项目名称:AIPJ,代码行数:32,代码来源:Sim_EX1_341.cs

示例3: onTurnEndsTrigger

        //    stellt am ende eures zuges bei einem verletzten charakter 6 leben wieder her.

        public override void onTurnEndsTrigger(Playfield p, Minion triggerEffectMinion, bool turnEndOfOwner)
        {
            if (turnEndOfOwner == triggerEffectMinion.own)
            {

                Minion tm = null;
                int hl = p.getMinionHeal(6, triggerEffectMinion.own);
                int heal = 0;
                foreach (Minion m in p.playerFirst.ownMinions)
                {
                    if (m.maxHp - m.Hp > heal)
                    {
                        tm = m;
                        heal = m.maxHp - m.Hp;
                    }
                }
                foreach (Minion m in p.playerSecond.ownMinions)
                {
                    if (m.maxHp - m.Hp > heal)
                    {
                        tm = m;
                        heal = m.maxHp - m.Hp;
                    }
                }
                if (heal >= 1)
                {
                    p.minionGetDamageOrHeal(tm, -hl);
                }
                else
                {
                    p.minionGetDamageOrHeal(p.playerFirst.ownHero.Hp < 30 ? p.playerFirst.ownHero : p.playerSecond.ownHero, -hl);
                }

            }
        }
开发者ID:shuyi3,项目名称:AIPJ,代码行数:37,代码来源:Sim_Mekka2.cs

示例4: onTurnEndsTrigger

//    stellt am ende eures zuges bei allen befreundeten dienern 1 leben wieder her.

        public override void onTurnEndsTrigger(Playfield p, Minion triggerEffectMinion, bool turnEndOfOwner)
        {
            if (triggerEffectMinion.own == turnEndOfOwner)
            {
                int heal =  p.getMinionHeal(1, triggerEffectMinion.own);
                p.allMinionOfASideGetDamage(turnEndOfOwner, -heal);
            }
        }
开发者ID:shuyi3,项目名称:AIPJ,代码行数:10,代码来源:Sim_NEW1_009.cs

示例5: onTurnStartTrigger

//    stellt zu beginn eures zuges das volle leben dieses dieners wieder her.

        public override void onTurnStartTrigger(Playfield p, Minion triggerEffectMinion, bool turnStartOfOwner)
        {
            if (triggerEffectMinion.own == turnStartOfOwner)
            {
                int heal = p.getMinionHeal(triggerEffectMinion.maxHp - triggerEffectMinion.Hp, triggerEffectMinion.own);
                p.minionGetDamageOrHeal(triggerEffectMinion, -heal);
            }
        }
开发者ID:shuyi3,项目名称:AIPJ,代码行数:10,代码来源:Sim_FP1_027.cs

示例6: onTurnEndsTrigger

        //  if you control a Secret at the end of your turn, restore 4 health to your hero. 

        public override void onTurnEndsTrigger(Playfield p, Minion triggerEffectMinion, bool turnEndOfOwner)
        {
            if (turnEndOfOwner == triggerEffectMinion.own)
            {
                if (((turnEndOfOwner) ? p.playerFirst.ownSecretsIDList.Count : p.playerSecond.ownSecretsIDList.Count) >= 1)
                {
                    int heal = p.getMinionHeal(4, turnEndOfOwner);
                    p.minionGetDamageOrHeal(((turnEndOfOwner) ? p.playerFirst.ownHero : p.playerSecond.ownHero), -heal, true);
                }
            }
        }
开发者ID:shuyi3,项目名称:AIPJ,代码行数:13,代码来源:Sim_GvG_089.cs

示例7: getBattlecryEffect

 //Zieht 2 Karten; oder stellt 5 Leben wieder her
 public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
 {
     if (choice == 2)
     {
         int heal = p.getMinionHeal(5, own.own);
         p.minionGetDamageOrHeal(target, -heal);
     }
     else
     {
         p.drawACard(p.getArandomCardFromDeck(own.own), own.own);
         p.drawACard(p.getArandomCardFromDeck(own.own), own.own);
     }
 }
开发者ID:shuyi3,项目名称:AIPJ,代码行数:14,代码来源:Sim_NEW1_008.cs

示例8: onDeathrattle

        //    todesröcheln:/ stellt beim feindlichen helden 5 leben wieder her.
        public override void onDeathrattle(Playfield p, Minion m)
        {
            int heal = p.getMinionHeal(5, m.own);

            p.minionGetDamageOrHeal(m.own ? p.playerSecond.ownHero : p.playerFirst.ownHero, -heal);
        }
开发者ID:shuyi3,项目名称:AIPJ,代码行数:7,代码来源:Sim_FP1_001.cs

示例9: getBattlecryEffect

//    kampfschrei:/ stellt 3 leben wieder her.
		public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
		{
            int heal =p.getMinionHeal(3, own.own);
            p.minionGetDamageOrHeal(target, -heal);
		}
开发者ID:shuyi3,项目名称:AIPJ,代码行数:6,代码来源:Sim_CS2_117.cs

示例10: getBattlecryEffect

//    kampfschrei:/ stellt bei allen befreundeten charakteren 2 leben wieder her.
		public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
		{
            int heal = p.getMinionHeal(2, own.own);
            p.allCharsOfASideGetDamage(own.own, -heal);
		}
开发者ID:shuyi3,项目名称:AIPJ,代码行数:6,代码来源:Sim_DS1_055.cs


注:本文中的HRSim.Playfield.getMinionHeal方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。