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


C# Playfield.changeRecall方法代码示例

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


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

示例1: onCardPlay

        //    Draw 2 cards. Overload: (2)

        public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            p.changeRecall(ownplay, 2);
            p.drawACard(CardDB.cardIDEnum.None, ownplay);
            p.drawACard(CardDB.cardIDEnum.None, ownplay);
            
        }
开发者ID:cookiezeater,项目名称:silverfish,代码行数:9,代码来源:Sim_AT_053.cs

示例2: onCardPlay

//    verursacht $5 schaden. überladung:/ (2)

		public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            int dmg = (ownplay) ? p.getSpellDamageDamage(5) : p.getEnemySpellDamageDamage(5);
            p.minionGetDamageOrHeal(target, dmg);
            p.changeRecall(ownplay, 2);
            
		}
开发者ID:cookiezeater,项目名称:silverfish,代码行数:9,代码来源:Sim_EX1_241.cs

示例3: onCardPlay

//    fügt zwei zufälligen feindlichen dienern $2 schaden zu. überladung:/ (2)
        //todo list
		public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
		{
            p.changeRecall(ownplay, 2);

            if (p.isServer)
            {
                int damageS = (ownplay) ? p.getSpellDamageDamage(2) : p.getEnemySpellDamageDamage(2);
                List<Minion> temp22 = (ownplay) ? new List<Minion>(p.enemyMinions) : new List<Minion>(p.ownMinions);
                if (temp22.Count < 2) return;
                int random1 = p.getRandomNumber_SERVER(0, temp22.Count - 1);
                int random2 = p.getRandomNumber_SERVER(0, temp22.Count - 2);
                if (random2 >= random1) random2++;

                p.minionGetDamageOrHeal(temp22[random1], damageS);
                p.minionGetDamageOrHeal(temp22[random2], damageS);

                return;
            }

            int damage = (ownplay) ? p.getSpellDamageDamage(2) : p.getEnemySpellDamageDamage(2);
            List<Minion> temp2 = new List<Minion>(p.enemyMinions);
            temp2.Sort((a, b) => a.Hp.CompareTo(b.Hp));
            int i = 0;
            foreach (Minion enemy in temp2)
            {
                p.minionGetDamageOrHeal(enemy, damage);
                i++;
                if (i == 2) break;
            }
		}
开发者ID:cookiezeater,项目名称:silverfish,代码行数:32,代码来源:Sim_EX1_251.cs

示例4: getBattlecryEffect

		//Overload: (2)
		
		public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
		{
            if (own != null)
            {
                p.changeRecall(own.own, 2);
            }
		}
开发者ID:cookiezeater,项目名称:silverfish,代码行数:9,代码来源:Sim_OG_024.cs

示例5: onCardPlay

        CardDB.Card kid = CardDB.Instance.getCardDataFromID(CardDB.cardIDEnum.EX1_tk11);//spiritwolf
//    ruft zwei geisterwölfe (2/3) mit spott/ herbei. überladung:/ (2)

		public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
		{
            int posi = (ownplay) ? p.ownMinions.Count : p.enemyMinions.Count;

            p.callKid(kid, posi, ownplay);
            p.callKid(kid, posi, ownplay);
            p.changeRecall(ownplay, 2);

		}
开发者ID:noHero123,项目名称:silverfish,代码行数:12,代码来源:Sim_EX1_248.cs

示例6: onCardPlay

        //    Deal $3-$6 damage.Overload: (1)

        public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            p.changeRecall(ownplay, 1);
            if (p.isServer)
            {
                int random = p.getRandomNumber_SERVER(3, 6);
                int dmgS = (ownplay) ? p.getSpellDamageDamage(random) : p.getEnemySpellDamageDamage(random);
                p.minionGetDamageOrHeal(target, dmgS);
                
                return;
            }

            int dmg = (ownplay) ? p.getSpellDamageDamage(4) : p.getEnemySpellDamageDamage(4);
            p.minionGetDamageOrHeal(target, dmg);
        }
开发者ID:noHero123,项目名称:silverfish,代码行数:17,代码来源:Sim_GvG_038.cs

示例7: onCardPlay

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


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