本文整理汇总了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);
}
示例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);
}
示例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;
}
}
示例4: getBattlecryEffect
//Overload: (2)
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
if (own != null)
{
p.changeRecall(own.own, 2);
}
}
示例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);
}
示例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);
}
示例7: onCardPlay
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
p.equipWeapon(card, ownplay);
p.changeRecall(ownplay, 2);
}