本文整理汇总了C#中HREngine.Bots.Playfield.allMinionOfASideGetDamage方法的典型用法代码示例。如果您正苦于以下问题:C# Playfield.allMinionOfASideGetDamage方法的具体用法?C# Playfield.allMinionOfASideGetDamage怎么用?C# Playfield.allMinionOfASideGetDamage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HREngine.Bots.Playfield
的用法示例。
在下文中一共展示了Playfield.allMinionOfASideGetDamage方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: onTurnEndsTrigger
// stellt am ende eures zuges bei allen befreundeten dienern 1 leben wieder her.
public override void onTurnEndsTrigger(Playfield p, Minion triggerEffectMinion, bool turnEndOfOwner)
{
if (triggerEffectMinion.own == turnEndOfOwner)
{
int heal = (triggerEffectMinion.own) ? p.getMinionHeal(1) : p.getEnemyMinionHeal(1);
p.allMinionOfASideGetDamage(turnEndOfOwner, -heal);
}
}
示例2: onCardPlay
// vernichtet einen befreundeten diener und fügt allen feindlichen dienern schaden zu, der seinem angriff entspricht.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int damage1 = (ownplay) ? p.getSpellDamageDamage(target.Angr) : p.getEnemySpellDamageDamage(target.Angr);
p.minionGetDestroyed(target);
p.allMinionOfASideGetDamage(!ownplay, damage1);
}
示例3: onCardPlay
//Deal 2 damage to all enemy minions and Freeze them.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int dmg = (ownplay) ? p.getSpellDamageDamage(2) : p.getEnemySpellDamageDamage(2);
p.allMinionOfASideGetDamage(!ownplay, dmg, true);
List<Minion> temp = (ownplay) ? p.enemyMinions : p.ownMinions;
foreach (Minion t in temp)
{
t.frozen = true;
}
}
示例4: onCardPlay
// wählt aus:/ fügt einem diener $5 schaden zu; oder fügt allen feindlichen dienern $2 schaden zu.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
if (choice == 1)
{
int dmg = (ownplay) ? p.getSpellDamageDamage(5) : p.getEnemySpellDamageDamage(5);
p.minionGetDamageOrHeal(target, dmg);
}
if (choice == 2)
{
int damage = (ownplay) ? p.getSpellDamageDamage(2) : p.getEnemySpellDamageDamage(2);
p.allMinionOfASideGetDamage(!ownplay, damage);
}
}
示例5: onCardPlay
//Deal $2-$3 damage to all enemy minions. Overload: (2)
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
if (p.isServer)
{
List<Minion> temp = (!ownplay) ? p.ownMinions : p.enemyMinions;
foreach (Minion m in temp)
{
int random = p.getRandomNumber_SERVER(2, 3);
int dmgs = (ownplay) ? p.getSpellDamageDamage(random) : p.getEnemySpellDamageDamage(random);
p.minionGetDamageOrHeal(m, dmgs, true);
}
if (ownplay) { p.owedRecall += 2; } else { p.enemyRecall += 2; };
return;
}
int dmg = (ownplay) ? p.getSpellDamageDamage(3) : p.getEnemySpellDamageDamage(3);
p.allMinionOfASideGetDamage(!ownplay, dmg);
if (ownplay) { p.owedRecall += 2; } else { p.enemyRecall += 2; };
}
示例6: onCardPlay
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int dmg = (ownplay) ? p.getSpellDamageDamage(3) : p.getEnemySpellDamageDamage(3);
p.allMinionOfASideGetDamage(!ownplay, dmg);
if (ownplay) p.ueberladung += 2;
}
示例7: onCardPlay
//Deal $2-$3 damage to all enemy minions. Overload: (2)
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int dmg = (ownplay) ? p.getSpellDamageDamage(3) : p.getEnemySpellDamageDamage(3);
p.allMinionOfASideGetDamage(!ownplay, dmg);
if (ownplay) { p.owedRecall += 2; } else { p.enemyRecall += 2; };
}
示例8: onCardPlay
// fügt allen feindlichen dienern $1 schaden zu. zieht eine karte.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int dmg = (ownplay) ? p.getSpellDamageDamage(1) : p.getEnemySpellDamageDamage(1);
p.allMinionOfASideGetDamage(!ownplay, dmg);
p.drawACard(CardDB.cardName.unknown, ownplay);
}
示例9: onCardPlay
// Deal $2 damage to all enemy minions and Freeze them.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int dmg = (ownplay) ? p.getSpellDamageDamage(2) : p.getEnemySpellDamageDamage(2);
p.allMinionOfASideGetDamage(!ownplay, dmg, true);
}
示例10: onSecretPlay
//todo secret
// geheimnis:/ wenn euer held angegriffen wird, erleiden alle feinde $2 schaden.
public override void onSecretPlay(Playfield p, bool ownplay, int number)
{
int dmg = (ownplay) ? p.getSpellDamageDamage(2) : p.getEnemySpellDamageDamage(2);
p.allMinionOfASideGetDamage(!ownplay, dmg);
}