本文整理汇总了C#中HREngine.Bots.Playfield.disCardACard方法的典型用法代码示例。如果您正苦于以下问题:C# Playfield.disCardACard方法的具体用法?C# Playfield.disCardACard怎么用?C# Playfield.disCardACard使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HREngine.Bots.Playfield
的用法示例。
在下文中一共展示了Playfield.disCardACard方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: onCardPlay
//Destroy 2 random enemy minions. Discard 2 random cards.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
if (p.isServer)
{
Minion choosen = p.getRandomMinionFromSide_SERVER(!ownplay, false);
if (choosen != null) p.minionGetDestroyed(choosen);
choosen = p.getRandomMinionFromSide_SERVER(!ownplay, false);
if (choosen != null) p.minionGetDestroyed(choosen);
p.discardRandomCard_SERVER(ownplay);
p.discardRandomCard_SERVER(ownplay);
return;
}
Minion choosen2 = p.searchRandomMinion(p.enemyMinions, Playfield.searchmode.searchLowestAttack);
if (choosen2 != null) p.minionGetDestroyed(choosen2);
choosen2 = p.searchRandomMinion(p.enemyMinions, Playfield.searchmode.searchLowestAttack);
if (choosen2 != null) p.minionGetDestroyed(choosen2);
p.disCardACard(ownplay);
p.disCardACard(ownplay);
}
示例2: getBattlecryEffect
// ansturm/. kampfschrei:/ werft zwei zufällige karten ab.
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
if (p.isServer)
{
p.discardRandomCard_SERVER(own.own);
p.discardRandomCard_SERVER(own.own);
return;
}
p.disCardACard(own.own);
p.disCardACard(own.own);
}
示例3: onCardPlay
// verursacht $4 schaden. werft eine zufällige karte ab.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int dmg = (ownplay) ? p.getSpellDamageDamage(4) : p.getEnemySpellDamageDamage(4);
p.minionGetDamageOrHeal(target, dmg);
if (p.isServer)
{
p.discardRandomCard_SERVER(ownplay);
return;
}
p.disCardACard(ownplay);
}