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


C# Playfield.getMinionHeal方法代码示例

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


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

示例1: getBattlecryEffect

        //Battlecry: Reveal a minion in each deck. If yours costs more, restore 7 Health to your hero.

        public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
        {
            if (p.isServer)
            {
                //TODO
                int heal = (own.own) ? p.getMinionHeal(7) : p.getEnemyMinionHeal(7);
                p.minionGetDamageOrHeal(own.own ? p.ownHero : p.enemyHero, -heal);
                return;
            }

            int heal2 = (own.own) ? p.getMinionHeal(7) : p.getEnemyMinionHeal(7);
            p.minionGetDamageOrHeal(own.own ? p.ownHero : p.enemyHero, -heal2);
        }
开发者ID:cookiezeater,项目名称:silverfish,代码行数:15,代码来源:Sim_AT_104.cs

示例2: getBattlecryEffect

        //Battlecry: Restore 4 Health to each hero

        public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
        {
           
            int heal2 = (own.own) ? p.getMinionHeal(4) : p.getEnemyMinionHeal(4);
            p.minionGetDamageOrHeal(own.own ? p.ownHero : p.enemyHero, -heal2);
            p.minionGetDamageOrHeal(own.own ? p.enemyHero : p.ownHero, -heal2);
        }
开发者ID:noHero123,项目名称:silverfish,代码行数:9,代码来源:Sim_AT_111.cs

示例3: 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 = (turnStartOfOwner) ? p.getMinionHeal(3) : p.getEnemyMinionHeal(3);
                List<Minion> temp = (turnStartOfOwner) ? p.ownMinions : p.enemyMinions;
                if (temp.Count >= 1)
                {
                    bool healed = false;
                    foreach (Minion mins in temp)
                    {
                        if (mins.wounded)
                        {
                            p.minionGetDamageOrHeal(mins, -heal);
                            healed = true;
                            break;
                        }
                    }

                    if (!healed)
                    {
                        if (turnStartOfOwner) p.minionGetDamageOrHeal(p.ownHero, -heal);
                        else p.minionGetDamageOrHeal(p.enemyHero, -heal);
                    }
                }
                else
                {
                    if (turnStartOfOwner) p.minionGetDamageOrHeal(p.ownHero, -heal);
                    else p.minionGetDamageOrHeal(p.enemyHero, -heal);
                }

            }
        }
开发者ID:JayMansel,项目名称:silverfish,代码行数:34,代码来源:Sim_EX1_341.cs

示例4: getBattlecryEffect

		//Battlecry: If your C'Thun has at least 10 Attack, restore 10 Health to your hero.
		
		public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
		{
            if (own.own && (p.anzOgOwnCThunAngrBonus + 6) > 9)
			{
				p.minionGetDamageOrHeal(p.ownHero, -p.getMinionHeal(10));
			}
		}
开发者ID:cookiezeater,项目名称:silverfish,代码行数:9,代码来源:Sim_OG_096.cs

示例5: 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 = (triggerEffectMinion.own) ? p.getMinionHeal(6) : p.getEnemyMinionHeal(6);
                int heal = 0;
                foreach (Minion m in p.ownMinions)
                {
                    if (m.maxHp - m.Hp > heal)
                    {
                        tm = m;
                        heal = m.maxHp - m.Hp;
                    }
                }
                foreach (Minion m in p.enemyMinions)
                {
                    if (m.maxHp - m.Hp > heal)
                    {
                        tm = m;
                        heal = m.maxHp - m.Hp;
                    }
                }
                if (heal >= 1)
                {
                    p.minionGetDamageOrHeal(tm, -hl);
                }
                else
                {
                    p.minionGetDamageOrHeal(p.ownHero.Hp < 30 ? p.ownHero : p.enemyHero, -hl);
                }

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

示例6: 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 = (triggerEffectMinion.own) ? p.getMinionHeal(1) : p.getEnemyMinionHeal(1);
                p.allMinionOfASideGetDamage(turnEndOfOwner, -heal);
            }
        }
开发者ID:JayMansel,项目名称:silverfish,代码行数:10,代码来源:Sim_NEW1_009.cs

示例7: 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 = (triggerEffectMinion.own) ? p.getMinionHeal(triggerEffectMinion.maxHp - triggerEffectMinion.Hp) : p.getEnemyMinionHeal(triggerEffectMinion.maxHp - triggerEffectMinion.Hp);
                p.minionGetDamageOrHeal(triggerEffectMinion, -heal);
            }
        }
开发者ID:JayMansel,项目名称:silverfish,代码行数:10,代码来源:Sim_FP1_027.cs

示例8: 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.ownSecretsIDList.Count : p.enemySecretList.Count) >= 1)
                {
                    int heal = (turnEndOfOwner) ? p.getMinionHeal(4) : p.getEnemyMinionHeal(4);
                    p.minionGetDamageOrHeal(((turnEndOfOwner) ? p.ownHero : p.enemyHero), -heal, true);
                }
            }
        }
开发者ID:martdeboer,项目名称:silverfish,代码行数:13,代码来源:Sim_GvG_089.cs

示例9: 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 = (own.own) ? p.getMinionHeal(5) : p.getEnemyMinionHeal(5);
         p.minionGetDamageOrHeal(target, -heal);
     }
     else
     {
         p.drawACard(CardDB.cardIDEnum.None, own.own);
         p.drawACard(CardDB.cardIDEnum.None, own.own);
     }
 }
开发者ID:martdeboer,项目名称:silverfish,代码行数:14,代码来源:Sim_NEW1_008.cs

示例10: getBattlecryEffect

//    kampfschrei:/ stellt bei eurem helden 6 leben wieder her.
		public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
		{
            int heal = (own.own) ? p.getMinionHeal(6) : p.getEnemyMinionHeal(6);

            if (own.own)
            {
                p.minionGetDamageOrHeal(p.ownHero, -heal);
            }
            else
            {
                p.minionGetDamageOrHeal(p.enemyHero, -heal);
            }
		}
开发者ID:JayMansel,项目名称:silverfish,代码行数:14,代码来源:Sim_CS2_088.cs

示例11: onTurnEndsTrigger

        //    At the end of your turn, restore 4 Health to your hero.

        public override void onTurnEndsTrigger(Playfield p, Minion triggerEffectMinion, bool turnEndOfOwner)
        {
            if (triggerEffectMinion.own == turnEndOfOwner)
            {
                
                if (triggerEffectMinion.own)
                {
                    int heal = p.getMinionHeal(4);
                    p.minionGetDamageOrHeal(p.ownHero, -heal, true);
                }
                else
                {
                    int heal =  p.getEnemyMinionHeal(4);
                    p.minionGetDamageOrHeal(p.enemyHero, -heal, true);
                }

            }
        }
开发者ID:martdeboer,项目名称:silverfish,代码行数:20,代码来源:Sim_GvG_039.cs

示例12: getBattlecryEffect

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

示例13: onInspire

        //Inspire: Gain +1 Health.

        public override void onInspire(Playfield p, Minion m)
        {
            int heal = (m.own) ? p.getMinionHeal(2) : p.getEnemyMinionHeal(2);
            p.minionGetDamageOrHeal(m.own ? p.ownHero : p.enemyHero, -heal);
        }
开发者ID:cookiezeater,项目名称:silverfish,代码行数:7,代码来源:Sim_AT_091.cs


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