本文整理汇总了C#中HREngine.Bots.Playfield.drawACard方法的典型用法代码示例。如果您正苦于以下问题:C# Playfield.drawACard方法的具体用法?C# Playfield.drawACard怎么用?C# Playfield.drawACard使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HREngine.Bots.Playfield
的用法示例。
在下文中一共展示了Playfield.drawACard方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: onCardPlay
// erhaltet einen leeren manakristall.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
if (ownplay)
{
if (p.ownMaxMana < 10)
{
p.ownMaxMana++;
}
else
{
p.drawACard(CardDB.cardName.excessmana, true, true);
}
}
else
{
if (p.enemyMaxMana < 10)
{
p.enemyMaxMana++;
}
else
{
p.drawACard(CardDB.cardName.excessmana, false, true);
}
}
}
示例2: onCardPlay
// zieht 4 karten.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
p.drawACard(CardDB.cardName.unknown, ownplay);
p.drawACard(CardDB.cardName.unknown, ownplay);
p.drawACard(CardDB.cardName.unknown, ownplay);
p.drawACard(CardDB.cardName.unknown, ownplay);
}
示例3: getBattlecryEffect
// Give each player a Mana Crystal.
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
p.drawACard(CardDB.cardName.unknown, true);
p.drawACard(CardDB.cardName.unknown, false);
}
示例4: onTurnEndsTrigger
// At the end of each player's turn, that player draws until they have 3 cards.
public override void onTurnEndsTrigger(Playfield p, Minion triggerEffectMinion, bool turnEndOfOwner)
{
int cardstodraw = 0;
if (p.owncards.Count <= 2)
{
cardstodraw = 3 - p.owncards.Count;
}
for (int i = 0; i < cardstodraw; i++)
{
p.drawACard(CardDB.cardIDEnum.None, true);
}
cardstodraw = 0;
//draw enemys cards...
if (p.enemyAnzCards <= 2)
{
cardstodraw = 3 - p.enemyAnzCards;
}
for (int i = 0; i < cardstodraw; i++)
{
p.drawACard(CardDB.cardIDEnum.None, false);
}
}
示例5: onCardPlay
//Shuffle the Golden Monkey into your deck. Draw a card.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
if (p.isServer)
{
if (ownplay)
{
p.ownDeckSize++;
}
else
{
p.enemyDeckSize++;
}
p.drawACard(CardDB.cardIDEnum.None, ownplay, true);
return;
}
if (ownplay)
{
p.ownDeckSize++;
}
else
{
p.enemyDeckSize++;
}
p.drawACard(CardDB.cardIDEnum.None, ownplay, true);
}
示例6: 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);
}
示例7: getBattlecryEffect
// Add 2 random spells to your hand (from your opponent's class).
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
if (own.own)
{
/*if (p.enemyHeroName == HeroEnum.druid)
{
p.drawACard(CardDB.cardIDEnum.None, true, true);
p.drawACard(CardDB.cardIDEnum.None, true, true);
}
if (p.enemyHeroName == HeroEnum.hunter)
{
p.drawACard(CardDB.cardIDEnum.None, true, true);
p.drawACard(CardDB.cardIDEnum.None, true, true);
}
if (p.enemyHeroName == HeroEnum.mage)
{
p.drawACard(CardDB.cardIDEnum.None, true, true);
p.drawACard(CardDB.cardIDEnum.None, true, true);
}
if (p.enemyHeroName == HeroEnum.pala)
{
p.drawACard(CardDB.cardIDEnum.None, true, true);
p.drawACard(CardDB.cardIDEnum.None, true, true);
}
if (p.enemyHeroName == HeroEnum.priest)
{
p.drawACard(CardDB.cardIDEnum.None, true, true);
p.drawACard(CardDB.cardIDEnum.None, true, true);
}
if (p.enemyHeroName == HeroEnum.shaman)
{
p.drawACard(CardDB.cardIDEnum.None, true, true);
p.drawACard(CardDB.cardIDEnum.None, true, true);
}
if (p.enemyHeroName == HeroEnum.thief)
{
p.drawACard(CardDB.cardIDEnum.None, true, true);
p.drawACard(CardDB.cardIDEnum.None, true, true);
}
if (p.enemyHeroName == HeroEnum.warlock || p.enemyHeroName == HeroEnum.lordjaraxxus)
{
p.drawACard(CardDB.cardIDEnum.None, true, true);
p.drawACard(CardDB.cardIDEnum.None, true, true);
}
if (p.enemyHeroName == HeroEnum.warrior)
{
p.drawACard(CardDB.cardIDEnum.None, true, true);
p.drawACard(CardDB.cardIDEnum.None, true, true);
}*/
p.drawACard(CardDB.cardIDEnum.BRM_030t, true, true);
p.drawACard(CardDB.cardIDEnum.BRM_030t, true, true);
}
else
{
p.drawACard(CardDB.cardIDEnum.None, false, true);
p.drawACard(CardDB.cardIDEnum.None, false, true);
}
}
示例8: onCardIsGoingToBePlayed
// Whenever your opponent casts a spell, gain a copy of it and give them a Coin.
public override void onCardIsGoingToBePlayed(Playfield p, CardDB.Card c, bool wasOwnCard, Minion triggerEffectMinion, Minion target)
{
if (c.type == CardDB.cardtype.SPELL && c.name != CardDB.cardName.gallywixscoin && wasOwnCard != triggerEffectMinion.own)
{
p.drawACard(c.cardIDenum, triggerEffectMinion.own, true);
p.drawACard(CardDB.cardIDEnum.GVG_028t, wasOwnCard, true);
}
}
示例9: onCardPlay
// Draw 2 cards. Overload: (2)
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
if (ownplay) { p.owedRecall += 2; } else { p.enemyRecall += 2; };
p.drawACard(CardDB.cardIDEnum.None, ownplay);
p.drawACard(CardDB.cardIDEnum.None, ownplay);
}
示例10: onCardPlay
// Both players draw 2 cards and gain a Mana Crystal.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
p.drawACard(CardDB.cardName.unknown, true);
p.drawACard(CardDB.cardName.unknown, false);
p.mana = Math.Min(10, p.mana+1);
p.ownMaxMana = Math.Min(10, p.ownMaxMana+1);
p.enemyMaxMana = Math.Min(10, p.enemyMaxMana+1);
}
示例11: getBattlecryEffect
//Battlecry: discover a deathrattle card
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
if (p.isServer)
{
p.drawACard(CardDB.cardIDEnum.None, own.own, true);
return;
}
p.drawACard(CardDB.cardIDEnum.None, own.own, true);
}
示例12: getBattlecryEffect
//bc: discover a powerful artifact.
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
if (p.isServer)
{
p.drawACard(CardDB.cardIDEnum.LOEA16_4, own.own, true);
return;
}
//TODO add a choice card with all 3 artifacts?
p.drawACard(CardDB.cardIDEnum.LOEA16_4, own.own, true);
}
示例13: onDeathrattle
// Deathrattle: Add a Spare Part card to your hand.
public override void onDeathrattle(Playfield p, Minion m)
{
if (p.isServer)
{
p.drawACard(p.getRandomSparePart_SERVER(), m.own, true);
return;
}
p.drawACard(CardDB.cardIDEnum.PART_001, m.own, true);
}
示例14: onTurnStartTrigger
// vernichtet zu beginn eures zuges diesen diener und zieht 3 karten.
public override void onTurnStartTrigger(Playfield p, Minion triggerEffectMinion, bool turnStartOfOwner)
{
if (turnStartOfOwner == triggerEffectMinion.own)
{
p.minionGetDestroyed(triggerEffectMinion);
p.drawACard(CardDB.cardIDEnum.None, turnStartOfOwner);
p.drawACard(CardDB.cardIDEnum.None, turnStartOfOwner);
p.drawACard(CardDB.cardIDEnum.None, turnStartOfOwner);
}
}
示例15: onDeathrattle
//Deathrattle: Reveal a minion in each deck. If yours costs more, return this to your hand.
public override void onDeathrattle(Playfield p, Minion m)
{
if (p.isServer)
{
//TODO
p.drawACard(CardDB.cardIDEnum.AT_128, m.own, true);
return;
}
p.drawACard(CardDB.cardIDEnum.AT_128, m.own, true);
}