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


C# Playfield.equipWeapon方法代码示例

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


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

示例1: 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.
		public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
		{
            if (ownplay)
            {
                if (p.playerFirst.ownWeaponName != CardDB.cardName.unknown)
                {
                    p.playerFirst.ownWeaponAttack++;
                    p.playerFirst.ownWeaponDurability++;
                    p.minionGetBuffed(p.playerFirst.ownHero, 1, 0);
                }
                else
                {

                    p.equipWeapon(wcard, true);
                }
            }
            else
            {
                if (p.playerSecond.ownWeaponName != CardDB.cardName.unknown)
                {
                    p.playerSecond.ownWeaponAttack++;
                    p.playerSecond.ownWeaponDurability++;
                    p.minionGetBuffed(p.playerSecond.ownHero, 1, 0);
                }
                else
                {

                    p.equipWeapon(wcard, false);
                }
            }
		}
开发者ID:shuyi3,项目名称:AIPJ,代码行数:33,代码来源:Sim_EX1_409.cs

示例2: onCardPlay

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

            List<Minion> temp = (ownplay) ? p.playerFirst.ownMinions : p.playerSecond.ownMinions;
            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.playerFirst.ownWeaponAttack += 2;
                    p.minionGetBuffed(p.playerFirst.ownHero, 2, 0);
                }
                else
                {
                    p.playerSecond.ownWeaponAttack += 2;
                    p.minionGetBuffed(p.playerSecond.ownHero, 2, 0);
                }
            }


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

示例3: onCardPlay

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

示例4: onCardPlay

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

示例5: 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.playerFirst.ownHeroAblility.card = card;
                p.playerFirst.ownHeroName = HeroEnum.lordjaraxxus;
                p.playerFirst.ownHero.Hp = own.Hp;
                p.playerFirst.ownHero.maxHp = own.maxHp;

                p.equipWeapon(weapon, own.own);
            }
            else 
            {
                p.playerSecond.ownHeroAblility.card = card;
                p.playerSecond.ownHeroName = HeroEnum.lordjaraxxus;
                p.playerSecond.ownHero.Hp = own.Hp;
                p.playerSecond.ownHero.maxHp = own.maxHp;

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

示例6: onCardPlay

 public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
 {
     p.equipWeapon(w, ownplay);
     List<Minion> temp = (ownplay) ? p.playerFirst.ownMinions : p.playerSecond.ownMinions;
     if (temp.Count <= 0) return;
     Minion m = p.searchRandomMinion(temp, Playfield.searchmode.searchLowestHP);
     if (m != null)
     {
         m.divineshild = true;
         m.taunt = true;
     }
 }
开发者ID:shuyi3,项目名称:AIPJ,代码行数:12,代码来源:Sim_GvG_059.cs

示例7: onCardPlay

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

示例8: getBattlecryEffect

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

示例9: getBattlecryEffect

        CardDB.Card wcard = CardDB.Instance.getCardDataFromID(CardDB.cardIDEnum.EX1_398t);//battleaxe

        public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
        {
            p.equipWeapon(wcard,own.own);

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

示例10: onCardPlay

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


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