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


C# Playfield.equipWeapon方法代码示例

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


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

示例1: onCardPlay

 public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
 {
     int dmg = (ownplay) ? p.getSpellDamageDamage(1) : p.getEnemySpellDamageDamage(1);
     if (p.cardsPlayedThisTurn >= 1) dmg = (ownplay) ? p.getSpellDamageDamage(2) : p.getEnemySpellDamageDamage(2);
     p.minionGetDamageOrHeal(target, dmg);
     p.equipWeapon(w, ownplay);
 }
开发者ID:JayMansel,项目名称:silverfish,代码行数:7,代码来源:Sim_EX1_133.cs

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

示例3: 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;
            if (temp.Count <= 0) return;
            p.minionGetBuffed(p.searchRandomMinion(temp, (ownplay ? Playfield.searchmode.searchLowestHP : Playfield.searchmode.searchHighestHP)), 1, 0);

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

示例4: 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;
     foreach (Minion m in temp)
     {
         if (m.divineshild) p.minionGetBuffed(m, 1, 1);
     }
 }
开发者ID:cookiezeater,项目名称:silverfish,代码行数:9,代码来源:Sim_OG_222.cs

示例5: onCardPlay

 public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
 {
     for (int i = 0; i < 3; i++)
     {
         int pos = (ownplay) ? p.ownMinions.Count : p.enemyMinions.Count;
         p.callKid(kid, pos, ownplay);
     }
     p.equipWeapon(w, ownplay);
 }
开发者ID:martdeboer,项目名称:silverfish,代码行数:9,代码来源:Sim_GvG_061.cs

示例6: 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;
     if (temp.Count <= 0) return;
     Minion m = p.searchRandomMinion(temp, Playfield.searchmode.searchLowestHP);
     m.divineshild = true;
     m.taunt = true;
 }
开发者ID:martdeboer,项目名称:silverfish,代码行数:9,代码来源:Sim_GvG_059.cs

示例7: getBattlecryEffect

//    kampfschrei:/ vernichtet euren helden und ersetzt ihn durch lord jaraxxus.
		public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
		{
            if (own.own)
            {
                p.ownHeroAblility.card = card;
                p.ownHeroName = HeroEnum.lordjaraxxus;
                p.ownHero.Hp = own.Hp;
                p.ownHero.maxHp = own.maxHp;

                p.equipWeapon(weapon, own.own);
            }
            else 
            {
                p.enemyHeroAblility.card = card;
                p.enemyHeroName = HeroEnum.lordjaraxxus;
                p.enemyHero.Hp = own.Hp;
                p.enemyHero.maxHp = own.maxHp;

                p.equipWeapon(weapon, own.own);
            }
		}
开发者ID:JayMansel,项目名称:silverfish,代码行数:22,代码来源:Sim_EX1_323.cs

示例8: 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;
            if (temp.Count <= 0) return;
            // Drew: Null check for searchRandomMinion.
            var found = p.searchRandomMinion(temp, Playfield.searchmode.searchLowestAttack);
            if (found != null)
            {
                p.minionGetBuffed(found, 1, 0);
            }

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

示例9: onCardPlay

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

            int pos = (ownplay) ? p.ownMinions.Count : p.enemyMinions.Count;
            p.callKid(kid, pos, ownplay, false);

            for (int i = 0; i < 2; i++)
            {
                pos = (ownplay) ? p.ownMinions.Count : p.enemyMinions.Count;
                p.callKid(kid, pos + 1, ownplay, true);  // spawnkid
            }
            p.equipWeapon(w, ownplay);
        }
开发者ID:cookiezeater,项目名称:silverfish,代码行数:13,代码来源:Sim_GvG_061.cs

示例10: onCardPlay

 public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
 {
     if (ownplay && p.ownWeaponDurability >= 1 && p.ownWeaponName == CardDB.cardName.poisonedblade)
     {
         p.ownWeaponAttack++;
         return;
     }
     if (!ownplay && p.enemyWeaponDurability >= 1 && p.enemyWeaponName == CardDB.cardName.poisonedblade)
     {
         p.enemyWeaponAttack++;
         return;
     }
     p.equipWeapon(weapon, ownplay);
 }
开发者ID:cookiezeater,项目名称:silverfish,代码行数:14,代码来源:Sim_CS2_083b.cs

示例11: getBattlecryEffect

//    kampfschrei:/ vernichtet euren helden und ersetzt ihn durch lord jaraxxus.
		public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
		{
            if (own.own)
            {
                p.ownHeroAblility.card = card;
                p.ownHeroName = HeroEnum.lordjaraxxus;
                p.ownHero.Hp = own.Hp;
                p.ownHero.maxHp = own.maxHp;

                p.equipWeapon(weapon, own.own);
                p.ownAbilityReady = true;
            }
            else 
            {
                p.enemyHeroAblility.card = card;
                p.enemyHeroName = HeroEnum.lordjaraxxus;
                p.enemyHero.Hp = own.Hp;
                p.enemyHero.maxHp = own.maxHp;

                p.equipWeapon(weapon, own.own);
                p.enemyAbilityReady = true;
            }
            p.heroPowerActivationsThisTurn = 0;
		}
开发者ID:babyedi3,项目名称:silverfish,代码行数:25,代码来源:Sim_EX1_323.cs

示例12: onCardPlay

        CardDB.Card wcard = CardDB.Instance.getCardDataFromID(CardDB.cardIDEnum.EX1_409t);//heavyaxe
//    wenn ihr eine waffe habt, erhält sie +1/+1. legt anderenfalls eine waffe (1/3) an.
        //todo enemy
		public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
		{
            if (ownplay)
            {
                if (p.ownWeaponName != CardDB.cardName.unknown)
                {
                    p.ownWeaponAttack++;
                    p.ownWeaponDurability++;
                    p.minionGetBuffed(p.ownHero, 1, 0);
                }
                else
                {
                    
                    p.equipWeapon(wcard, true);
                }
            }
		}
开发者ID:JayMansel,项目名称:silverfish,代码行数:20,代码来源:Sim_EX1_409.cs

示例13: 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;
            if (temp.Count <= 0) return;

            if (p.isServer)
            {
                Minion choosen = p.getRandomMinionFromSide_SERVER(ownplay, false);
                if (choosen != null)
                {
                    choosen.divineshild = true;
                    choosen.taunt = true;
                }
                return;
            }

            Minion m = p.searchRandomMinion(temp, (ownplay ? Playfield.searchmode.searchLowestAttack : Playfield.searchmode.searchHighestAttack));
            m.divineshild = true;
            m.taunt = true;
        }
开发者ID:cookiezeater,项目名称:silverfish,代码行数:21,代码来源:Sim_GvG_059.cs

示例14: getBattlecryEffect

 public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
 {
     p.equipWeapon(w, true);
     p.equipWeapon(w, false);
 }
开发者ID:martdeboer,项目名称:silverfish,代码行数:5,代码来源:Sim_GvG_119.cs

示例15: onCardPlay

		public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
		{
            
            p.equipWeapon(card, ownplay);
            if (ownplay) { p.owedRecall += 2; } else { p.enemyRecall += 2; };
		}
开发者ID:John4Jobs,项目名称:silverfish,代码行数:6,代码来源:Sim_EX1_567.cs


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