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


C# Playfield.minionTransform方法代码示例

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


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

示例1: getBattlecryEffect

        CardDB.Card card2 = CardDB.Instance.getCardDataFromID(CardDB.cardIDEnum.EX1_tk28); // squirrel
        //todo better
//    kampfschrei:/ verwandelt einen anderen zufälligen diener in einen teufelssaurier (5/5) oder ein eichhörnchen (1/1).
		public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
		{
            int oc = p.playerFirst.ownMinions.Count;
            int ec = p.playerSecond.ownMinions.Count;
            if (oc == 0 && ec == 0) return;
            if (oc > ec)
            {
                List<Minion> temp = new List<Minion>(p.playerFirst.ownMinions);
                temp.AddRange(p.playerSecond.ownMinions);
                temp.Sort((a, b) => a.Hp.CompareTo(b.Hp));//transform the weakest
                foreach (Minion m in temp)
                {
                    p.minionTransform(m, card1);
                    break;
                }
            }
            else
            {
                List<Minion> temp = new List<Minion>(p.playerFirst.ownMinions);
                temp.AddRange(p.playerSecond.ownMinions);
                temp.Sort((a, b) => -a.Hp.CompareTo(b.Hp));//transform the strongest
                foreach (Minion m in temp)
                {
                    p.minionTransform(m, card2);
                    break;
                }
            }
		}
开发者ID:shuyi3,项目名称:AIPJ,代码行数:31,代码来源:Sim_EX1_083.cs

示例2: getBattlecryEffect

		public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
		{
            if (choice == 1)
            {
                p.minionTransform(own, cat);
            }
            if (choice == 2)
            {
                p.minionTransform(own, bear);
            }
		}
开发者ID:shuyi3,项目名称:AIPJ,代码行数:11,代码来源:Sim_EX1_165.cs

示例3: getBattlecryEffect

		public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
		{
            if (choice == 1)
            {
                p.minionTransform(own, fireCat52);
            }
            else if (choice == 2)
            {
                p.minionTransform(own, fireHawk25);
            }
		}
开发者ID:shuyi3,项目名称:AIPJ,代码行数:11,代码来源:Sim_BRM_010.cs

示例4: onTurnStartTrigger

//    tauscht zu beginn eures zuges diesen diener gegen einen zufälligen diener auf eurer hand aus.

        public override void onTurnStartTrigger(Playfield p, Minion triggerEffectMinion, bool turnStartOfOwner)
        {
            if (turnStartOfOwner && triggerEffectMinion.own == turnStartOfOwner)
            {
                List<Handmanager.Handcard> temp2 = new List<Handmanager.Handcard>();
                foreach (Handmanager.Handcard hc in p.playerFirst.owncards)
                {
                    if (hc.card.type == CardDB.cardtype.MOB) temp2.Add(hc);
                }
                temp2.Sort((a, b) => -a.card.Attack.CompareTo(b.card.Attack));//damage the stronges
                foreach (Handmanager.Handcard mins in temp2)
                {
                    CardDB.Card c = CardDB.Instance.getCardDataFromID(mins.card.cardIDenum);
                    p.minionTransform(triggerEffectMinion, c);
                    p.removeCard(mins, true);
                    p.drawACard(CardDB.cardName.alarmobot, true, true);
                    break;
                }
                return;
            }

            if (!turnStartOfOwner && triggerEffectMinion.own == turnStartOfOwner)
            {
                p.minionGetBuffed(triggerEffectMinion, 4, 4);
                triggerEffectMinion.Hp = triggerEffectMinion.maxHp;
            }
        }
开发者ID:shuyi3,项目名称:AIPJ,代码行数:29,代码来源:Sim_EX1_006.cs

示例5: getBattlecryEffect

 public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
 {
     List<Minion> temp = (own.own) ? p.playerFirst.ownMinions : p.playerSecond.ownMinions;
     bool hasbeast = false;
     foreach (Minion m in temp)
     {
         if ((TAG_RACE)m.handcard.card.race == TAG_RACE.PET)
         {
             hasbeast = true;
         }
     }
     if(hasbeast) p.minionTransform(own, betterguy);
 }
开发者ID:shuyi3,项目名称:AIPJ,代码行数:13,代码来源:Sim_GvG_080.cs

示例6: getBattlecryEffect

 public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
 {
     p.minionTransform(own, hawk);
 }
开发者ID:shuyi3,项目名称:AIPJ,代码行数:4,代码来源:Sim_BRM_010b.cs

示例7: getBattlecryEffect

        //   Battlecry: Transform a friendly minion into a random minion with the same Cost.

        public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
        {
            if(target == null) return;
            p.minionTransform(target, target.handcard.card);
        }
开发者ID:shuyi3,项目名称:AIPJ,代码行数:7,代码来源:Sim_GvG_108.cs

示例8: onCardPlay

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


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