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


C# Playfield.getSpellHeal方法代码示例

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


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

示例1: onCardPlay

        //   Restore #4 Health to your hero and gain +2 Attack this turn.

        public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            if (ownplay)
            {
                int heal = p.getSpellHeal(4, ownplay);
                p.minionGetDamageOrHeal(p.playerFirst.ownHero, -heal);
                p.minionGetTempBuff(p.playerFirst.ownHero, 2, 0);
            }
            else
            {
                int heal = p.getSpellHeal(4, ownplay);
                p.minionGetDamageOrHeal(p.playerSecond.ownHero, -heal);
                p.minionGetTempBuff(p.playerSecond.ownHero, 2, 0);
            }

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

示例2: onCardPlay

        //Vernichtet einen Diener. Stellt bei Eurem Helden #3 Leben wieder her.

        public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            p.minionGetDestroyed(target);
            int heal = p.getSpellHeal(3, ownplay);

            p.minionGetDamageOrHeal(ownplay ? p.playerFirst.ownHero : p.playerSecond.ownHero, -heal);
        }
开发者ID:shuyi3,项目名称:AIPJ,代码行数:9,代码来源:Sim_EX1_309.cs

示例3: onCardPlay

        //todo make it better :D
        //Fügt allen Feinden $2 Schaden zu. Stellt bei allen befreundeten Charakteren #2 Leben wieder her.
        public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            int dmg = p.getSpellDamageDamage(2, ownplay);
            int heal = p.getSpellHeal(2, ownplay);
            if (ownplay)
            {
                p.minionGetDamageOrHeal(p.playerFirst.ownHero, -heal);
                p.minionGetDamageOrHeal(p.playerSecond.ownHero, dmg);
                foreach (Minion m in p.playerFirst.ownMinions)
                {
                    p.minionGetDamageOrHeal(m, -heal);
                }

                foreach (Minion m in p.playerSecond.ownMinions)
                {
                    p.minionGetDamageOrHeal(m, dmg);
                }
            }
            else 
            {
                p.minionGetDamageOrHeal(p.playerSecond.ownHero, -heal);
                p.minionGetDamageOrHeal(p.playerFirst.ownHero, dmg);
                foreach (Minion m in p.playerSecond.ownMinions)
                {
                    p.minionGetDamageOrHeal(m, -heal);
                }

                foreach (Minion m in p.playerFirst.ownMinions)
                {
                    p.minionGetDamageOrHeal(m, dmg);
                }
            }
        }
开发者ID:shuyi3,项目名称:AIPJ,代码行数:35,代码来源:Sim_CS1_112.cs

示例4: onCardPlay

 public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
 {
     int heal = p.getSpellHeal(3, ownplay);
     p.minionGetDamageOrHeal(target, -heal);
     if (target.Hp < target.maxHp)
     {
         int posi = (ownplay) ? p.playerFirst.ownMinions.Count : p.playerSecond.ownMinions.Count;
         p.callKid(kid, posi, ownplay);
     }
 }
开发者ID:shuyi3,项目名称:AIPJ,代码行数:10,代码来源:Sim_GvG_012.cs

示例5: onCardPlay

//    stellt #6 leben wieder her.
		public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
		{
            int heal = p.getSpellHeal(6, ownplay);
            p.minionGetDamageOrHeal(target, -heal);
		}
开发者ID:shuyi3,项目名称:AIPJ,代码行数:6,代码来源:Sim_CS2_089.cs

示例6: onCardPlay

//    stellt bei allen dienern #4 leben wieder her.

		public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
		{
            int heal = p.getSpellHeal(4, ownplay);
            p.allMinionsGetDamage(-heal);
		}
开发者ID:shuyi3,项目名称:AIPJ,代码行数:7,代码来源:Sim_EX1_621.cs


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