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


C# Playfield.allMinionOfASideGetDamage方法代码示例

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


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

示例1: 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

示例2: onCardPlay

//    vernichtet einen befreundeten diener und fügt allen feindlichen dienern schaden zu, der seinem angriff entspricht.
		public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
		{
            int damage1 = (ownplay) ? p.getSpellDamageDamage(target.Angr) : p.getEnemySpellDamageDamage(target.Angr);

            p.minionGetDestroyed(target);

            p.allMinionOfASideGetDamage(!ownplay, damage1);

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

示例3: onCardPlay

//Deal 2 damage to all enemy minions and Freeze them.
		public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
		{
            int dmg = (ownplay) ? p.getSpellDamageDamage(2) : p.getEnemySpellDamageDamage(2);
            p.allMinionOfASideGetDamage(!ownplay, dmg, true);
			List<Minion> temp = (ownplay) ? p.enemyMinions : p.ownMinions;
            foreach (Minion t in temp)
            {
                t.frozen = true;
            }
		}
开发者ID:shuyi3,项目名称:AIPJ,代码行数:11,代码来源:Sim_CS2_028.cs

示例4: onCardPlay

//    wählt aus:/ fügt einem diener $5 schaden zu; oder fügt allen feindlichen dienern $2 schaden zu.

		public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
		{
            if (choice == 1)
            {
                int dmg = (ownplay) ? p.getSpellDamageDamage(5) : p.getEnemySpellDamageDamage(5);
                p.minionGetDamageOrHeal(target, dmg);
            }
            if (choice == 2)
            {
                int damage = (ownplay) ? p.getSpellDamageDamage(2) : p.getEnemySpellDamageDamage(2);
                p.allMinionOfASideGetDamage(!ownplay, damage);
            }

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

示例5: onCardPlay

 //Deal $2-$3 damage to all enemy minions. Overload: (2)
 public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
 {
     if (p.isServer)
     {
         List<Minion> temp = (!ownplay) ? p.ownMinions : p.enemyMinions;
         foreach (Minion m in temp)
         {
             int random = p.getRandomNumber_SERVER(2, 3);
             int dmgs = (ownplay) ? p.getSpellDamageDamage(random) : p.getEnemySpellDamageDamage(random);
             p.minionGetDamageOrHeal(m, dmgs, true);
         }
         if (ownplay) { p.owedRecall += 2; } else { p.enemyRecall += 2; };
         return;
     }
     int dmg = (ownplay) ? p.getSpellDamageDamage(3) : p.getEnemySpellDamageDamage(3);
     p.allMinionOfASideGetDamage(!ownplay, dmg);
     if (ownplay) { p.owedRecall += 2; } else { p.enemyRecall += 2; };
 }
开发者ID:peppert,项目名称:silverfish,代码行数:19,代码来源:Sim_EX1_259.cs

示例6: onCardPlay

 public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
 {
     int dmg = (ownplay) ? p.getSpellDamageDamage(3) : p.getEnemySpellDamageDamage(3);
     p.allMinionOfASideGetDamage(!ownplay, dmg);
     if (ownplay) p.ueberladung += 2;
 }
开发者ID:shuyi3,项目名称:AIPJ,代码行数:6,代码来源:Sim_EX1_259.cs

示例7: onCardPlay

 //Deal $2-$3 damage to all enemy minions. Overload: (2)
 public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
 {
     int dmg = (ownplay) ? p.getSpellDamageDamage(3) : p.getEnemySpellDamageDamage(3);
     p.allMinionOfASideGetDamage(!ownplay, dmg);
     if (ownplay) { p.owedRecall += 2; } else { p.enemyRecall += 2; };
 }
开发者ID:martdeboer,项目名称:silverfish,代码行数:7,代码来源:Sim_EX1_259.cs

示例8: onCardPlay

//    fügt allen feindlichen dienern $1 schaden zu. zieht eine karte.
		public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
		{
            int dmg = (ownplay) ? p.getSpellDamageDamage(1) : p.getEnemySpellDamageDamage(1);
            p.allMinionOfASideGetDamage(!ownplay, dmg);
            p.drawACard(CardDB.cardName.unknown, ownplay);
		}
开发者ID:JayMansel,项目名称:silverfish,代码行数:7,代码来源:Sim_EX1_129.cs

示例9: onCardPlay

        //    Deal $2 damage to all enemy minions and Freeze them.
		public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
		{
            int dmg = (ownplay) ? p.getSpellDamageDamage(2) : p.getEnemySpellDamageDamage(2);
            p.allMinionOfASideGetDamage(!ownplay, dmg, true);
		}
开发者ID:martdeboer,项目名称:silverfish,代码行数:6,代码来源:Sim_CS2_028.cs

示例10: onSecretPlay

        //todo secret
//    geheimnis:/ wenn euer held angegriffen wird, erleiden alle feinde $2 schaden.
        public override void onSecretPlay(Playfield p, bool ownplay, int number)
        {
            int dmg = (ownplay) ? p.getSpellDamageDamage(2) : p.getEnemySpellDamageDamage(2);
            p.allMinionOfASideGetDamage(!ownplay, dmg);
        }
开发者ID:cookiezeater,项目名称:silverfish,代码行数:7,代码来源:Sim_EX1_610.cs


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