本文整理汇总了C#中HRSim.Playfield.triggerCardsChanged方法的典型用法代码示例。如果您正苦于以下问题:C# Playfield.triggerCardsChanged方法的具体用法?C# Playfield.triggerCardsChanged怎么用?C# Playfield.triggerCardsChanged使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HRSim.Playfield
的用法示例。
在下文中一共展示了Playfield.triggerCardsChanged方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: getBattlecryEffect
// ansturm/. kampfschrei:/ werft zwei zufällige karten ab.
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
if (own.own)
{
int anz = Math.Min(2, p.playerFirst.owncards.Count);
p.playerFirst.owncarddraw -= anz;
p.playerFirst.owncards.RemoveRange(0, anz);
if (anz >= 1)
{
p.triggerCardsChanged(true);
}
}
else
{
int anz = Math.Min(2, p.playerSecond.owncards.Count);
p.playerSecond.owncarddraw -= anz;
p.playerSecond.owncards.RemoveRange(0, anz);
if (anz >= 1)
{
p.triggerCardsChanged(false);
}
}
}
示例2: onCardPlay
// Put a random minion from each player's hand into the battlefield.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
Handmanager.Handcard c = null;
int sum = 10000;
foreach (Handmanager.Handcard hc in p.playerFirst.owncards)
{
if (hc.card.type == CardDB.cardtype.MOB)
{
int s = hc.card.Health + hc.card.Attack + ((hc.card.tank) ? 1 : 0) + ((hc.card.Shield) ? 1 : 0);
if (s < sum)
{
c = hc;
sum = s;
}
}
}
if (sum < 9999)
{
p.callKid(c.card, p.playerFirst.ownMinions.Count, true);
p.removeCard(c, true);
p.triggerCardsChanged(true);
}
if (p.playerSecond.owncards.Count >= 2)
{
p.callKid(c.card, p.playerSecond.ownMinions.Count, false);
p.removeCard(c, false);
p.triggerCardsChanged(false);
}
}
示例3: getBattlecryEffect
// kampfschrei:/ vernichtet alle anderen diener und werft eure hand ab.
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
p.allMinionsGetDestroyed();
if (own.own)
{
p.playerFirst.owncards.Clear();
p.triggerCardsChanged(true);
}
else
{
p.playerSecond.owncarddraw = 0;
p.playerSecond.owncards.Clear();
p.triggerCardsChanged(false);
}
}
示例4: onCardPlay
// verursacht $4 schaden. werft eine zufällige karte ab.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int dmg = p.getSpellDamageDamage(4, ownplay);
p.minionGetDamageOrHeal(target, dmg);
if (ownplay)
{
p.playerFirst.owncarddraw -= Math.Min(1, p.playerFirst.owncards.Count);
p.playerFirst.owncards.RemoveRange(0, Math.Min(1, p.playerFirst.owncards.Count));
p.triggerCardsChanged(true);
}
else
{
p.playerSecond.owncarddraw -= Math.Min(1, p.playerSecond.owncards.Count);
p.playerSecond.owncards.RemoveRange(0, Math.Min(1, p.playerSecond.owncards.Count));
p.triggerCardsChanged(true);
}
}