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


C# Playfield.minionGetDestroyed方法代码示例

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


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

示例1: onTurnEndsTrigger

//    ansturm/. vernichtet diesen diener am ende des zuges.


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

示例2: 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 = p.getSpellHeal(3, ownplay);

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

示例3: onTurnStartTrigger

        public override void onTurnStartTrigger(Playfield p, Minion triggerEffectMinion, bool turnStartOfOwner)
        {
            if(turnStartOfOwner != triggerEffectMinion.own) return;
            List<Minion> temp = (turnStartOfOwner) ? p.playerFirst.ownMinions : p.playerSecond.ownMinions;
            int anz =0;
            foreach (Minion m in temp)
            {
                if ((TAG_RACE)m.handcard.card.race == TAG_RACE.MECHANICAL && m.Hp >=1 )
                {
                    anz++;
                }
            }
            if (anz >= 3)
            {
                foreach (Minion m in temp)
                {
                    if ((TAG_RACE)m.handcard.card.race == TAG_RACE.MECHANICAL)
                    {
                        p.minionGetDestroyed(m);
                    }
                }

                int pos = (triggerEffectMinion.own) ? p.playerFirst.ownMinions.Count : p.playerSecond.ownMinions.Count;
                p.callKid(kid, pos, triggerEffectMinion.own,false, true); // we allow to summon one minion more (because 3 are destroyed)
            }
        }
开发者ID:shuyi3,项目名称:AIPJ,代码行数:26,代码来源:Sim_GvG_111.cs

示例4: onCardPlay

//    vernichtet einen diener und bringt ihn dann mit vollem leben wieder auf das schlachtfeld zurück.

		public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
		{
            bool own = target.own;
            int place = target.zonepos;
            CardDB.Card d = target.handcard.card;
            p.minionGetDestroyed(target);
            p.callKid(d, place, own);
		}
开发者ID:shuyi3,项目名称:AIPJ,代码行数:10,代码来源:Sim_FP1_025.cs

示例5: onTurnEndsTrigger

        //  At the end of each turn, destroy this minion if it's your only one. 

        public override void onTurnEndsTrigger(Playfield p, Minion triggerEffectMinion, bool turnEndOfOwner)
        {
            if (triggerEffectMinion.own)
            {
                if (p.playerFirst.ownMinions.Count == 1)
                {
                    p.minionGetDestroyed(triggerEffectMinion);
                }
            }
            else
            {
                if (p.playerSecond.ownMinions.Count == 1)
                {
                    p.minionGetDestroyed(triggerEffectMinion);
                }
            }
        }
开发者ID:shuyi3,项目名称:AIPJ,代码行数:19,代码来源:Sim_GvG_077.cs

示例6: getBattlecryEffect

 public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
 {
     if (target != null)
     {
         p.minionGetDestroyed(target);
         p.minionGetBuffed(own, 2, 2);
     }
 } 
开发者ID:shuyi3,项目名称:AIPJ,代码行数:8,代码来源:Sim_NEW1_017.cs

示例7: onCardPlay

//    vernichtet einen zufälligen feindlichen diener.

		public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
		{
            List<Minion> temp2 = (ownplay) ? new List<Minion>(p.playerSecond.ownMinions) : new List<Minion>(p.playerFirst.ownMinions);
            temp2.Sort((a, b) => a.Angr.CompareTo(b.Angr));
            foreach (Minion enemy in temp2)
            {
                p.minionGetDestroyed(enemy);
                break;
            }
		}
开发者ID:shuyi3,项目名称:AIPJ,代码行数:12,代码来源:Sim_EX1_617.cs

示例8: onTurnStartTrigger

//    vernichtet zu beginn eures zuges diesen diener und zieht 3 karten.

        public override void onTurnStartTrigger(Playfield p, Minion triggerEffectMinion, bool turnStartOfOwner)
        {
            if (turnStartOfOwner == triggerEffectMinion.own)
            {
                p.minionGetDestroyed(triggerEffectMinion);
                p.drawACard(p.getArandomCardFromDeck(turnStartOfOwner), turnStartOfOwner);
                p.drawACard(p.getArandomCardFromDeck(turnStartOfOwner), turnStartOfOwner);
                p.drawACard(p.getArandomCardFromDeck(turnStartOfOwner), turnStartOfOwner);
            }
        }
开发者ID:shuyi3,项目名称:AIPJ,代码行数:12,代码来源:Sim_Mekka1.cs

示例9: onDeathrattle

	//    Deathrattle: Destroy the minions next to this one as well.

		public override void onDeathrattle(Playfield p, Minion m)
		{
            List<Minion> temp = (m.own) ? p.playerFirst.ownMinions : p.playerSecond.ownMinions;
            foreach (Minion mnn in temp)
            {
                if (mnn.zonepos == m.zonepos + 1 || mnn.zonepos + 1 == m.zonepos)
                {
					p.minionGetDestroyed(mnn);
                }

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

示例10: onCardPlay

        //   Destroy a random enemy minion. Combo: And your opponent's weapon.


        public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            List<Minion> temp = (ownplay)? p.playerSecond.ownMinions : p.playerFirst.ownMinions;
            if (temp.Count >= 1)
            {
                // Drew: Null check for searchRandomMinion.
                var found = p.searchRandomMinion(temp, Playfield.searchmode.searchLowestHP);
                if (found != null)
                {
                    p.minionGetDestroyed(found);
                }
            }
            if (p.playerFirst.cardsPlayedThisTurn >= 1) p.lowerWeaponDurability(1000, !ownplay);
        }
开发者ID:shuyi3,项目名称:AIPJ,代码行数:17,代码来源:Sim_GvG_047.cs

示例11: getBattlecryEffect

        //todo list
        public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
        {

            List<Minion> temp2 = (own.own) ? new List<Minion>(p.playerSecond.ownMinions) : new List<Minion>(p.playerFirst.ownMinions);
            temp2.Sort((a, b) => a.Hp.CompareTo(b.Hp));//destroys the weakest
            foreach (Minion enemy in temp2)
            {
                if (enemy.Angr <= 2)
                {
                    p.minionGetDestroyed(enemy);
                    break;
                }
            }

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

示例12: onCardPlay

 public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
 {
     p.minionGetDestroyed(target);
 }
开发者ID:shuyi3,项目名称:AIPJ,代码行数:4,代码来源:Sim_CS2_076.cs

示例13: onCardPlay

//    vernichtet einen diener. euer gegner zieht 2 karten.

		public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
		{
            p.minionGetDestroyed(target);
            p.drawACard(p.getArandomCardFromDeck(!ownplay), !ownplay);
            p.drawACard(p.getArandomCardFromDeck(!ownplay), !ownplay);
		}
开发者ID:shuyi3,项目名称:AIPJ,代码行数:8,代码来源:Sim_EX1_161.cs

示例14: onSecretPlay

        //todo secret
//    geheimnis:/ wenn ein diener euren helden angreift, wird er vernichtet.
        public override void onSecretPlay(Playfield p, bool ownplay, Minion target, int number)
        {
            p.minionGetDestroyed(target);
        }
开发者ID:shuyi3,项目名称:AIPJ,代码行数:6,代码来源:Sim_EX1_594.cs

示例15: getBattlecryEffect

        // Battlecry: If you're holding a Dragon, destroy a Legendary minion.

        public override void getBattlecryEffect(Playfield p, Minion m, Minion target, int choice)
        {
            if (target != null) p.minionGetDestroyed(target);
        }
开发者ID:shuyi3,项目名称:AIPJ,代码行数:6,代码来源:Sim_BRM_029.cs


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