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


C# Playfield.getEnemyHeroPowerDamage方法代码示例

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


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

示例1: onCardPlay

		CardDB.Card kid = CardDB.Instance.getCardDataFromID(CardDB.cardIDEnum.NAX11_03);//Fallout Slime

		public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
		{
            int dmg = (ownplay) ? p.getHeroPowerDamage(1) : p.getEnemyHeroPowerDamage(1);
			p.allMinionsGetDamage(dmg);
			
            int place = (ownplay) ? p.ownMinions.Count : p.enemyMinions.Count;
            foreach (Minion m in p.ownMinions)
            {
				if (m.Hp <= 0) p.callKid(kid, place, ownplay);
			}
            foreach (Minion m in p.enemyMinions)
            {
				if (m.Hp <= 0) p.callKid(kid, place, ownplay);
			}
		}
开发者ID:cookiezeater,项目名称:silverfish,代码行数:17,代码来源:Sim_NAX11_02.cs

示例2: onCardPlay

		//Hero Power: Deal 2 damage to the left-most enemy 
		
		public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            List<Minion> temp = (ownplay) ? p.enemyMinions : p.ownMinions;
            if (temp.Count < 1) return;
            else
			{
				int dmg = (ownplay) ? p.getHeroPowerDamage(2) : p.getEnemyHeroPowerDamage(2);
				target = temp[0];
				foreach (Minion m in temp)
				{
					if (m.zonepos < target.zonepos) target = m;
				}
				p.minionGetDamageOrHeal(target, dmg);
			}
		}
开发者ID:cookiezeater,项目名称:silverfish,代码行数:17,代码来源:Sim_NAX5_02.cs

示例3: onCardPlay

//Hero Power: Deal 2 damage to the enemy hero and Freeze it.

        public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            int dmg = (ownplay) ? p.getHeroPowerDamage(2) : p.getEnemyHeroPowerDamage(2);
            p.minionGetDamageOrHeal(ownplay ? p.enemyHero : p.ownHero, dmg);
			target.frozen = true;
        }
开发者ID:cookiezeater,项目名称:silverfish,代码行数:8,代码来源:Sim_NAX15_02.cs

示例4: onCardPlay

		//Hero Power: Deal 2 damage.
		
        public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            int dmg = (ownplay) ? p.getHeroPowerDamage(2) : p.getEnemyHeroPowerDamage(2);
            p.minionGetDamageOrHeal(target, dmg);
        }
开发者ID:cookiezeater,项目名称:silverfish,代码行数:7,代码来源:Sim_CS2_034_H1_AT_132.cs

示例5: onCardPlay

		// Hero Power: Deal 1 damage.
		
        public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
			int dmg = (ownplay) ? p.getHeroPowerDamage(1) : p.getEnemyHeroPowerDamage(1);
            if (target == null) target = ownplay ? p.enemyHero : p.ownHero;
            p.minionGetDamageOrHeal(target, dmg);
        }
开发者ID:cookiezeater,项目名称:silverfish,代码行数:8,代码来源:Sim_TU4d_003.cs


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