本文整理汇总了C#中HRSim.Playfield.callKid方法的典型用法代码示例。如果您正苦于以下问题:C# Playfield.callKid方法的具体用法?C# Playfield.callKid怎么用?C# Playfield.callKid使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HRSim.Playfield
的用法示例。
在下文中一共展示了Playfield.callKid方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: onSecretPlay
public override void onSecretPlay(Playfield p, bool ownplay, Minion attacker, Minion target, out int number)
{
number = 0;
if (ownplay)
{
int posi = p.playerFirst.ownMinions.Count;
p.callKid(kid, posi, true);
if (p.playerFirst.ownMinions.Count >= 1)
{
if (p.playerFirst.ownMinions[p.playerFirst.ownMinions.Count - 1].name == CardDB.cardName.defender)
{
number = p.playerFirst.ownMinions[p.playerFirst.ownMinions.Count - 1].entitiyID;
}
}
}
else
{
int posi = p.playerSecond.ownMinions.Count;
p.callKid(kid, posi, false);
if (p.playerSecond.ownMinions.Count >= 1)
{
if (p.playerSecond.ownMinions[p.playerSecond.ownMinions.Count - 1].name == CardDB.cardName.defender)
{
number = p.playerSecond.ownMinions[p.playerSecond.ownMinions.Count - 1].entitiyID;
}
}
}
}
示例2: onCardPlay
// ruft zwei diener (0/2) mit spott/ herbei.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int posi = (ownplay) ? p.playerFirst.ownMinions.Count : p.playerSecond.ownMinions.Count;
p.callKid(kid, posi, ownplay);
p.callKid(kid, posi, ownplay);
}
示例3: getBattlecryEffect
CardDB.Card kid = CardDB.Instance.getCardDataFromID(CardDB.cardIDEnum.GVG_110t);//chillwind
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
int pos = (own.own) ? p.playerFirst.ownMinions.Count : p.playerSecond.ownMinions.Count;
p.callKid(kid, pos, own.own);
pos = (own.own) ? p.playerFirst.ownMinions.Count : p.playerSecond.ownMinions.Count;
p.callKid(kid, pos, own.own);
}
示例4: 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);
}
}
示例5: onCardPlay
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int dmg = p.getSpellDamageDamage(2, ownplay);
p.minionGetDamageOrHeal(target, dmg);
int posi = (ownplay) ? p.playerFirst.ownMinions.Count : p.playerSecond.ownMinions.Count;
p.callKid(kid, posi, ownplay);
posi++;
p.callKid(kid, posi, ownplay);
}
示例6: onCardPlay
// vernichtet alle diener und ruft für jeden einen treant (2/2) als ersatz herbei.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int ownanz = p.playerFirst.ownMinions.Count;
int enemanz = p.playerSecond.ownMinions.Count;
p.allMinionsGetDestroyed();
for (int i = 0; i < ownanz; i++)
{
p.callKid(d, 1, true);
}
for (int i = 0; i < enemanz; i++)
{
p.callKid(d, 1, false);
}
}
示例7: onSecretPlay
//todo secret
// geheimnis:/ wenn euer gegner einen diener ausspielt, beschwört ihr eine kopie desselben herbei.
public override void onSecretPlay(Playfield p, bool ownplay, Minion target, int number)
{
int posi = (ownplay) ? p.playerFirst.ownMinions.Count : p.playerSecond.ownMinions.Count;
p.callKid(target.handcard.card, posi, ownplay);
if (ownplay)
{
if (p.playerFirst.ownMinions.Count >= 1 && p.playerFirst.ownMinions[p.playerFirst.ownMinions.Count - 1].name == target.handcard.card.name)
{
int e = p.playerFirst.ownMinions[p.playerFirst.ownMinions.Count - 1].entitiyID;
p.playerFirst.ownMinions[p.playerFirst.ownMinions.Count - 1].setMinionTominion(target);
p.playerFirst.ownMinions[p.playerFirst.ownMinions.Count - 1].entitiyID = e;
p.playerFirst.ownMinions[p.playerFirst.ownMinions.Count - 1].own = true;
}
}
else
{
if (p.playerSecond.ownMinions.Count >= 1 && p.playerSecond.ownMinions[p.playerSecond.ownMinions.Count - 1].name == target.handcard.card.name)
{
int e = p.playerSecond.ownMinions[p.playerSecond.ownMinions.Count - 1].entitiyID;
p.playerSecond.ownMinions[p.playerSecond.ownMinions.Count - 1].setMinionTominion(target);
p.playerSecond.ownMinions[p.playerSecond.ownMinions.Count - 1].entitiyID = e;
p.playerSecond.ownMinions[p.playerSecond.ownMinions.Count - 1].own = false;
}
}
}
示例8: getBattlecryEffect
// combo:/ ruft einen banditen der defias (2/1) herbei.
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
if (p.playerFirst.cardsPlayedThisTurn >= 1)
{
p.callKid(card, own.zonepos, own.own);
}
}
示例9: onTurnStartTrigger
public override void onTurnStartTrigger(Playfield p, Minion triggerEffectMinion, bool turnStartOfOwner)
{
if(turnStartOfOwner != triggerEffectMinion.own) return;
List<Minion> temp = (turnStartOfOwner) ? p.playerFirst.ownMinions : p.playerSecond.ownMinions;
int anz =0;
foreach (Minion m in temp)
{
if ((TAG_RACE)m.handcard.card.race == TAG_RACE.MECHANICAL && m.Hp >=1 )
{
anz++;
}
}
if (anz >= 3)
{
foreach (Minion m in temp)
{
if ((TAG_RACE)m.handcard.card.race == TAG_RACE.MECHANICAL)
{
p.minionGetDestroyed(m);
}
}
int pos = (triggerEffectMinion.own) ? p.playerFirst.ownMinions.Count : p.playerSecond.ownMinions.Count;
p.callKid(kid, pos, triggerEffectMinion.own,false, true); // we allow to summon one minion more (because 3 are destroyed)
}
}
示例10: onDeathrattle
// todesröcheln:/ ruft thaddius herbei, wenn feugen in diesem duell bereits gestorben ist.
public override void onDeathrattle(Playfield p, Minion m)
{
if (p.stalaggDead)
{
p.callKid(thaddius, m.zonepos - 1, m.own);
}
}
示例11: onCardIsGoingToBePlayed
public override void onCardIsGoingToBePlayed(Playfield p, CardDB.Card c, bool wasOwnCard, Minion triggerEffectMinion)
{
if (wasOwnCard == triggerEffectMinion.own && c.type == CardDB.cardtype.SPELL)
{
int place = (wasOwnCard)? p.playerFirst.ownMinions.Count : p.playerSecond.ownMinions.Count;
p.callKid(card, place, wasOwnCard);
}
}
示例12: onCardIsGoingToBePlayed
CardDB.Card d = CardDB.Instance.getCardDataFromID(CardDB.cardIDEnum.EX1_614t);//flameofazzinoth
// beschwört jedes mal eine flamme von azzinoth (2/1), wenn ihr eine karte ausspielt.
public override void onCardIsGoingToBePlayed(Playfield p, CardDB.Card c, bool wasOwnCard, Minion triggerEffectMinion)
{
if (wasOwnCard == triggerEffectMinion.own)
{
p.callKid(d, triggerEffectMinion.zonepos, triggerEffectMinion.own);
}
}
示例13: onCardPlay
// vernichtet einen diener und bringt ihn dann mit vollem leben wieder auf das schlachtfeld zurück.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
bool own = target.own;
int place = target.zonepos;
CardDB.Card d = target.handcard.card;
p.minionGetDestroyed(target);
p.callKid(d, place, own);
}
示例14: onCardPlay
// Summon a random friendly minion that died this game.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
if (p.playerFirst.ownMaxMana >= 6)
{
int posi = ownplay ? p.playerFirst.ownMinions.Count : p.playerSecond.ownMinions.Count;
CardDB.Card kid = CardDB.Instance.getCardDataFromID((p.playerFirst.ownLastDiedMinion == CardDB.cardIDEnum.None) ? CardDB.cardIDEnum.EX1_345t : p.playerFirst.ownLastDiedMinion); // Shadow of Nothing 0:1 or ownMinion
p.callKid(kid, posi, ownplay);
}
}
示例15: onTurnEndsTrigger
CardDB.Card kid = CardDB.Instance.getCardDataFromID(CardDB.cardIDEnum.NEW1_040t);//gnoll
// ruft am ende eures zuges einen gnoll (2/2) mit spott/ herbei.
public override void onTurnEndsTrigger(Playfield p, Minion triggerEffectMinion, bool turnEndOfOwner)
{
if (triggerEffectMinion.own == turnEndOfOwner)
{
int posi = triggerEffectMinion.zonepos;
p.callKid(kid, posi, triggerEffectMinion.own);
}
}