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


C# Playfield.getEnemySpellHeal方法代码示例

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


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

示例1: onCardPlay

        //   Restore #7 Health. Reveal a minion in each deck. If yours costs more, Restore #14 instead.
    

        public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {

            if (p.isServer)
            {
                //TODO
                int heal2 = (ownplay) ? p.getSpellHeal(7) : p.getEnemySpellHeal(7);
                p.minionGetDamageOrHeal(target, -heal2);
                return;
            }

            int heal = (ownplay) ? p.getSpellHeal(11) : p.getEnemySpellHeal(11);
            p.minionGetDamageOrHeal(target, -heal);
        }
开发者ID:noHero123,项目名称:silverfish,代码行数:17,代码来源:Sim_AT_048.cs

示例2: onCardPlay

        //todo make it better :D
        //Fügt allen Feinden $2 Schaden zu. Stellt bei allen befreundeten Charakteren #2 Leben wieder her.
        public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            int dmg = (ownplay)? p.getSpellDamageDamage(2) : p.getEnemySpellDamageDamage(2);
            int heal = (ownplay) ? p.getSpellHeal(2) : p.getEnemySpellHeal(2) ;
            if (ownplay)
            {
                p.minionGetDamageOrHeal(p.ownHero, -heal);
                p.minionGetDamageOrHeal(p.enemyHero, dmg);
                foreach (Minion m in p.ownMinions)
                {
                    p.minionGetDamageOrHeal(m, -heal);
                }

                foreach (Minion m in p.enemyMinions)
                {
                    p.minionGetDamageOrHeal(m, dmg);
                }
            }
            else 
            {
                p.minionGetDamageOrHeal(p.enemyHero, -heal);
                p.minionGetDamageOrHeal(p.ownHero, dmg);
                foreach (Minion m in p.enemyMinions)
                {
                    p.minionGetDamageOrHeal(m, -heal);
                }

                foreach (Minion m in p.ownMinions)
                {
                    p.minionGetDamageOrHeal(m, dmg);
                }
            }
        }
开发者ID:JayMansel,项目名称:silverfish,代码行数:35,代码来源:Sim_CS1_112.cs

示例3: onCardPlay

        //Vernichtet einen Diener. Stellt bei Eurem Helden #3 Leben wieder her.

        public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            p.minionGetDestroyed(target);
            int heal = (ownplay) ? p.getSpellHeal(3) : p.getEnemySpellHeal(3);

            p.minionGetDamageOrHeal(ownplay ? p.ownHero : p.enemyHero, -heal);
        }
开发者ID:cookiezeater,项目名称:silverfish,代码行数:9,代码来源:Sim_EX1_309.cs

示例4: onCardPlay

        //    verursacht $2 schaden. stellt bei eurem helden #2 leben wieder her.

        public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            int dmg = (ownplay) ? p.getSpellDamageDamage(2) : p.getEnemySpellDamageDamage(2);
            int heal = (ownplay) ? p.getSpellHeal(2) : p.getEnemySpellHeal(2);
            p.minionGetDamageOrHeal(target, dmg);

            p.minionGetDamageOrHeal(ownplay ? p.ownHero : p.enemyHero, -heal);
        }
开发者ID:martdeboer,项目名称:silverfish,代码行数:10,代码来源:Sim_CS2_061.cs

示例5: onCardPlay

 public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
 {
     int heal = (ownplay) ? p.getSpellHeal(3) : p.getEnemySpellHeal(3);
     p.minionGetDamageOrHeal(target, -heal);
     if (target.Hp < target.maxHp)
     {
         int posi = (ownplay) ? p.ownMinions.Count : p.enemyMinions.Count;
         p.callKid(kid, posi, ownplay);
     }
 }
开发者ID:Felmyst,项目名称:silverfish,代码行数:10,代码来源:Sim_GvG_012.cs

示例6: onCardPlay

        //    Restore all characters to full Health.

        public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            foreach (Minion m in p.ownMinions)
            {
                int heal = (ownplay) ? p.getSpellHeal(m.maxHp) : p.getEnemySpellHeal(m.maxHp);
                p.minionGetDamageOrHeal(m, -heal);
            }
            foreach (Minion m in p.enemyMinions)
            {
                int heal = (ownplay) ? p.getSpellHeal(m.maxHp) : p.getEnemySpellHeal(m.maxHp);
                p.minionGetDamageOrHeal(m, -heal);
            }

            int heal2 = (ownplay) ? p.getSpellHeal(p.enemyHero.maxHp) : p.getEnemySpellHeal(p.enemyHero.maxHp);
            p.minionGetDamageOrHeal(p.enemyHero, -heal2);

            heal2 = (ownplay) ? p.getSpellHeal(p.ownHero.maxHp) : p.getEnemySpellHeal(p.ownHero.maxHp);
            p.minionGetDamageOrHeal(p.ownHero, -heal2);
        }
开发者ID:martdeboer,项目名称:silverfish,代码行数:21,代码来源:Sim_GvG_033.cs

示例7: onCardPlay

 //Stellt #8 Leben wieder her. Zieht 3 Karten.
 public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
 {
     int heal = (ownplay) ? p.getSpellHeal(8) : p.getEnemySpellHeal(8);
     p.minionGetDamageOrHeal(target, -heal);
     for (int i = 0; i < 3; i++)
     {
         //this.owncarddraw++;
         p.drawACard(CardDB.cardName.unknown, ownplay);
     }
     
 }
开发者ID:JayMansel,项目名称:silverfish,代码行数:12,代码来源:Sim_EX1_354.cs

示例8: onCardPlay

        //   Restore #4 Health to your hero and gain +2 Attack this turn.

        public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            if (ownplay)
            {
                int heal = p.getSpellHeal(4);
                p.minionGetDamageOrHeal(p.ownHero, -heal);
                p.minionGetTempBuff(p.ownHero, 2, 0);
            }
            else
            {
                int heal = p.getEnemySpellHeal(4);
                p.minionGetDamageOrHeal(p.enemyHero, -heal);
                p.minionGetTempBuff(p.enemyHero, 2, 0);
            }

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

示例9: onCardPlay

//    stellt das volle leben eines dieners wieder her und verleiht ihm spott/.
		public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
		{
            target.taunt = true;
            int heal = (ownplay)? p.getSpellHeal(target.maxHp - target.Hp) : p.getEnemySpellHeal(target.maxHp - target.Hp);
            p.minionGetDamageOrHeal(target, heal);
		}
开发者ID:JayMansel,项目名称:silverfish,代码行数:7,代码来源:Sim_CS2_041.cs

示例10: onCardPlay

//    stellt #8 leben wieder her.

		public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
		{
            int heal = (ownplay) ? p.getSpellHeal(8) : p.getEnemySpellHeal(8);
            p.minionGetDamageOrHeal(target, -heal);
            
		}
开发者ID:JayMansel,项目名称:silverfish,代码行数:8,代码来源:Sim_CS2_007.cs

示例11: onCardPlay

//    stellt bei allen dienern #4 leben wieder her.

		public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
		{
            int heal = (ownplay) ? p.getSpellHeal(4) : p.getEnemySpellHeal(4);
            p.allMinionsGetDamage(-heal);
		}
开发者ID:JayMansel,项目名称:silverfish,代码行数:7,代码来源:Sim_EX1_621.cs


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