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


C# Playfield.minionGetBuffed方法代码示例

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


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

示例1: onMinionIsSummoned

        public override void onMinionIsSummoned(Playfield p, Minion triggerEffectMinion, Minion summonedMinion)
        {
            if ((TAG_RACE)summonedMinion.handcard.card.race == TAG_RACE.MECHANICAL)
            {
                List<Minion> temp = (triggerEffectMinion.own) ? p.ownMinions : p.enemyMinions;

                foreach (Minion m in temp)
                {
                    //if we have allready a mechanical, we are buffed
                    if ((TAG_RACE)m.handcard.card.race == TAG_RACE.MECHANICAL) return; 
                }

                //we had no mechanical, but now!
                if (triggerEffectMinion.own)
                {
                    p.ownWeaponAttack += 2;
                    p.minionGetBuffed(p.ownHero, 2, 0);
                }
                else
                {
                    p.enemyWeaponAttack += 2;
                    p.minionGetBuffed(p.enemyHero, 2, 0);
                }
            }
        }
开发者ID:shuyi3,项目名称:AIPJ,代码行数:25,代码来源:Sim_GvG_024.cs

示例2: onAuraStarts

        // Your hero is Immune.

        public override void onAuraStarts(Playfield p, Minion own)
        {
            if (own.own)
            {
                p.ownHero.immune = true;
                if (p.ownWeaponCard.name == CardDB.cardName.runeblade && p.anzOwnHorsemen < 1)
                {
                    int bonus = (p.ownWeaponCard.cardIDenum == CardDB.cardIDEnum.NAX9_05H) ? 6 : 3;
                    p.minionGetBuffed(p.ownHero, -1 * Math.Min(bonus, p.ownWeaponAttack - 1), 0);
                    p.ownWeaponAttack = Math.Min(1, p.ownWeaponAttack - bonus);
                }
                p.anzOwnHorsemen++;
            }
            else
            {
                p.enemyHero.immune = true;
                if (p.enemyWeaponCard.name == CardDB.cardName.runeblade && p.anzEnemyHorsemen < 1)
                {
                    int bonus = (p.enemyWeaponCard.cardIDenum == CardDB.cardIDEnum.NAX9_05H) ? 6 : 3;
                    p.minionGetBuffed(p.enemyHero, -1 * Math.Min(bonus, p.enemyWeaponAttack - 1), 0);
                    p.enemyWeaponAttack = Math.Min(1, p.enemyWeaponAttack - bonus);
                }
                p.anzEnemyHorsemen++;
            }
        }
开发者ID:cookiezeater,项目名称:silverfish,代码行数:27,代码来源:Sim_NAX9_03.cs

示例3: onTurnEndsTrigger

        //   At the end of your turn, give another friendly Mech +2/+2.

        public override void onTurnEndsTrigger(Playfield p, Minion triggerEffectMinion, bool turnEndOfOwner)
        {
            if (turnEndOfOwner == triggerEffectMinion.own)
            {
                List<Minion> temp = (turnEndOfOwner) ? p.ownMinions : p.enemyMinions;
                List<Minion> tempmech = new List<Minion>();
                foreach (Minion m in temp)
                {
                    if ((TAG_RACE)m.handcard.card.race == TAG_RACE.MECHANICAL)
                    {
                        tempmech.Add(m);
                    }
                }
                if (tempmech.Count >= 1)
                {
                    if (p.isServer)
                    {
                        int random = p.getRandomNumber_SERVER(0, tempmech.Count - 1);
                        p.minionGetBuffed(tempmech[random], 2, 2);
                        return;
                    }
                    p.minionGetBuffed(p.searchRandomMinion(tempmech, (triggerEffectMinion.own ? Playfield.searchmode.searchLowestHP : Playfield.searchmode.searchHighestHP)), 2, 2);
                }
            }
        }
开发者ID:cookiezeater,项目名称:silverfish,代码行数:27,代码来源:Sim_GvG_027.cs

示例4: onDeathrattle

        //todo list
        public override void onDeathrattle(Playfield p, Minion m)
        {
            List<Minion> temp = new List<Minion>();

            if (m.own)
            {
                List<Minion> temp2 = new List<Minion>(p.ownMinions);
                temp2.Sort((a, b) => -a.Angr.CompareTo(b.Angr));
                temp.AddRange(temp2);
            }
            else
            {
                List<Minion> temp2 = new List<Minion>(p.enemyMinions);
                temp2.Sort((a, b) => a.Angr.CompareTo(b.Angr));
                temp.AddRange(temp2);
            }

            if (temp.Count >= 1)
            {
                if (m.own)
                {
                    Minion target = temp[0];
                    if (temp.Count >= 2 && target.taunt && !temp[1].taunt) target = temp[1];
                    p.minionGetBuffed(target, 0, 3);
                }
                else
                {

                    Minion target = temp[0];
                    if (temp.Count >= 2 && !target.taunt && temp[1].taunt) target = temp[1];
                    p.minionGetBuffed(target, 0, 3);
                }
            }

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

示例5: onCardPlay

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

            List<Minion> temp = (ownplay) ? p.ownMinions : p.enemyMinions;
            bool hasmech = false;
            foreach (Minion m in temp)
            {
                //if we have allready a mechanical, we are buffed
                if ((TAG_RACE)m.handcard.card.race == TAG_RACE.MECHANICAL) hasmech=true;
            }
            if (hasmech)
            {
                if (ownplay)
                {
                    p.ownWeaponAttack += 2;
                    p.minionGetBuffed(p.ownHero, 2, 0);
                }
                else
                {
                    p.enemyWeaponAttack += 2;
                    p.minionGetBuffed(p.enemyHero, 2, 0);
                }
            }


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

示例6: onAuraEnds

 public override void onAuraEnds(Playfield p, Minion own)
 {
     if (own.own)
     {
         p.anzOwnHorsemen--;
         if (p.anzOwnHorsemen < 1)
         {
             p.ownHero.immune = false;
             if (p.ownWeaponCard.name == CardDB.cardName.runeblade)
             {
                 int bonus = (p.ownWeaponCard.cardIDenum == CardDB.cardIDEnum.NAX9_05H) ? 6 : 3;
                 p.minionGetBuffed(p.ownHero, bonus, 0);
                 p.ownWeaponAttack += bonus;
             }
         }
     }
     else
     {
         p.anzEnemyHorsemen--;
         if (p.anzEnemyHorsemen < 1)
         {
             p.enemyHero.immune = false;
             if (p.enemyWeaponCard.name == CardDB.cardName.runeblade)
             {
                 int bonus = (p.enemyWeaponCard.cardIDenum == CardDB.cardIDEnum.NAX9_05H) ? 6 : 3;
                 p.minionGetBuffed(p.enemyHero, bonus, 0);
                 p.enemyWeaponAttack += bonus;
             }
         }
     }
 }
开发者ID:cookiezeater,项目名称:silverfish,代码行数:31,代码来源:Sim_NAX9_03.cs

示例7: onMinionGotDmgTrigger

        // Whenever your hero takes damage on your turn, gain +2/+2.  
		
        public override void onMinionGotDmgTrigger(Playfield p, Minion m, bool ownDmgdmin)
        {
            if (p.ownHero.anzGotDmg>=1 && m.own)
            {
                p.minionGetBuffed(m, 2 * p.ownHero.anzGotDmg, 2 * p.ownHero.anzGotDmg);
            }
            else if (p.enemyHero.anzGotDmg>=1 && !m.own)
            {
                p.minionGetBuffed(m, 2 * p.enemyHero.anzGotDmg, 2 * p.enemyHero.anzGotDmg);
            }
        }
开发者ID:shuyi3,项目名称:AIPJ,代码行数:13,代码来源:Sim_GvG_100.cs

示例8: getBattlecryEffect

 public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
 {
     foreach (Minion m in p.ownMinions)
     {
         if ((TAG_RACE)m.handcard.card.race == TAG_RACE.MURLOC && own.entitiyID != m.entitiyID) p.minionGetBuffed(m, 0, 2);
     }
     foreach (Minion m in p.enemyMinions)
     {
         if ((TAG_RACE)m.handcard.card.race == TAG_RACE.MURLOC && own.entitiyID != m.entitiyID) p.minionGetBuffed(m, 0, 2);
     }
 }
开发者ID:shuyi3,项目名称:AIPJ,代码行数:11,代码来源:Sim_EX1_103.cs

示例9: getBattlecryEffect

        //    Taunt. Choose One - +1 Attack; or +1 Health.

           public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
		{
            if (choice == 1)
            {
                p.minionGetBuffed(own, 1, 0);
            }
            if (choice == 2)
            {
                p.minionGetBuffed(own, 0, 1);
            }
		}
开发者ID:martdeboer,项目名称:silverfish,代码行数:13,代码来源:Sim_GvG_030.cs

示例10: getBattlecryEffect

        //    Battlecry: If your hand is empty, gain +3/+3

        public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
        {
            if (own.own && p.owncards.Count==0)
            {
                p.minionGetBuffed(own, 3, 3);
            }
            if (!own.own && p.enemyAnzCards == 0)
            {
                p.minionGetBuffed(own, 3, 3);
            }
        }
开发者ID:martdeboer,项目名称:silverfish,代码行数:13,代码来源:Sim_BRM_014.cs

示例11: onAuraEnds

        public override void onAuraEnds(Playfield p, Minion m)
        {
            p.anzMurlocWarleader--;
                foreach (Minion mn in p.ownMinions)
                {
                    if((TAG_RACE)mn.handcard.card.race == TAG_RACE.MURLOC && mn.entitiyID != m.entitiyID) p.minionGetBuffed(mn, -2, -1);
                }
                foreach (Minion mn in p.enemyMinions)
                {
                    if ((TAG_RACE)mn.handcard.card.race == TAG_RACE.MURLOC && mn.entitiyID != m.entitiyID) p.minionGetBuffed(mn, -2, -1);
                }
		}
开发者ID:noHero123,项目名称:silverfish,代码行数:12,代码来源:Sim_EX1_507.cs

示例12: onAuraStarts

 public override void onAuraStarts(Playfield p, Minion own)
 {
     p.anzGrimscaleOracle++;
     foreach (Minion m in p.ownMinions)
     {
         if ((TAG_RACE)m.handcard.card.race == TAG_RACE.MURLOC && own.entitiyID != m.entitiyID) p.minionGetBuffed(m, 1, 0);
     }
     foreach (Minion m in p.enemyMinions)
     {
         if ((TAG_RACE)m.handcard.card.race == TAG_RACE.MURLOC && own.entitiyID != m.entitiyID) p.minionGetBuffed(m, 1, 0);
     }
 }
开发者ID:JayMansel,项目名称:silverfish,代码行数:12,代码来源:Sim_EX1_508.cs

示例13: onAuraEnds

 public override void onAuraEnds(Playfield p, Minion m)
 {
     p.anzGrimscaleOracle--;
     foreach (Minion mn in p.ownMinions)
     {
         if ((TAG_RACE)mn.handcard.card.race == TAG_RACE.MURLOC && mn.entitiyID != m.entitiyID) p.minionGetBuffed(m, -1, 0);
     }
     foreach (Minion mn in p.enemyMinions)
     {
         if ((TAG_RACE)mn.handcard.card.race == TAG_RACE.MURLOC && mn.entitiyID != m.entitiyID) p.minionGetBuffed(m, -1, 0);
     }
 }
开发者ID:JayMansel,项目名称:silverfish,代码行数:12,代码来源:Sim_EX1_508.cs

示例14: onCardPlay

//    wählt aus:/ verleiht einem diener +4 angriff; oder +4 leben und spott/.
		public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
		{
            if (choice == 1)
            {
                p.minionGetBuffed(target, 4, 0);
            }
            if (choice == 2)
            {
                p.minionGetBuffed(target, 0, 4);
                target.taunt = true;
            }
		}
开发者ID:JayMansel,项目名称:silverfish,代码行数:13,代码来源:Sim_EX1_155.cs

示例15: onAuraStarts

//    alle anderen murlocs haben +2/+1.
        public override void onAuraStarts(Playfield p, Minion own)
		{
            p.anzMurlocWarleader++;
                foreach (Minion m in p.ownMinions)
                {
                    if((TAG_RACE)m.handcard.card.race == TAG_RACE.MURLOC && own.entitiyID != m.entitiyID) p.minionGetBuffed(m, 2, 1);
                }
                foreach (Minion m in p.enemyMinions)
                {
                    if ((TAG_RACE)m.handcard.card.race == TAG_RACE.MURLOC && own.entitiyID != m.entitiyID) p.minionGetBuffed(m, 2, 1);
                }
		}
开发者ID:noHero123,项目名称:silverfish,代码行数:13,代码来源:Sim_EX1_507.cs


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