本文整理匯總了C#中Board.GetCard方法的典型用法代碼示例。如果您正苦於以下問題:C# Board.GetCard方法的具體用法?C# Board.GetCard怎麽用?C# Board.GetCard使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Board
的用法示例。
在下文中一共展示了Board.GetCard方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: OnPlay
public override void OnPlay(ref Board board, Card target = null,int index = 0,int choice = 0)
{
base.OnPlay(ref board, target,index);
if(board.WeaponFriend != null)
{
board.GetCard(Id).currentAtk += board.WeaponFriend.CurrentAtk;
}
}
示例2: OnCastSpell
public override void OnCastSpell(ref Board board, Card Spell)
{
if(IsFriend)
{
board.GetCard(Id).currentAtk++;
}
base.OnCastSpell(ref board, Spell);
}
示例3: OnPlay
public override void OnPlay(ref Board board, Card target = null,int index = 0,int choice = 0)
{
base.OnPlay(ref board, target,index);
if (!board.IsCombo())
return;
int cardsplayed = 0;
foreach(Action a in board.ActionsStack)
{
if (a.Type == Action.ActionType.CAST_MINION || a.Type == Action.ActionType.CAST_SPELL || a.Type == Action.ActionType.CAST_WEAPON)
{
cardsplayed++;
}
}
board.GetCard(Id).currentAtk += 2 * cardsplayed;
board.GetCard(Id).CurrentHealth += 2 * cardsplayed;
board.GetCard(Id).maxHealth += 2 * cardsplayed;
}
示例4: OnPlay
public override void OnPlay(ref Board board, Card target = null,int index = 0,int choice = 0)
{
base.OnPlay(ref board, target,index);
Card left = null;
Card right = null;
int atkBuff = 0;
int healBuff = 0;
foreach(Card c in board.MinionFriend)
{
if (c.Index == index - 1)
left = c;
if (c.Index == Index + 1)
right = c;
}
if(left != null)
{
atkBuff += left.CurrentAtk;
healBuff += left.CurrentHealth;
board.RemoveCardFromBoard(left.Id);
}
if (right != null)
{
atkBuff += right.CurrentAtk;
healBuff += right.CurrentHealth;
board.RemoveCardFromBoard(right.Id);
}
board.GetCard(Id).currentAtk += atkBuff;
board.GetCard(Id).maxHealth += healBuff;
board.GetCard(Id).CurrentHealth += healBuff;
}
示例5: OnPlay
public override void OnPlay(ref Board board, Card target = null,int index = 0,int choice = 0)
{
base.OnPlay(ref board, target,index);
board.GetCard(Id).Damage(3, ref board);
}
示例6: OnOtherMinionDeath
public override void OnOtherMinionDeath(ref Board board, bool friend, Card minion)
{
board.GetCard(Id).currentAtk++;
}
示例7: OnPlay
public override void OnPlay(ref Board board, Card target = null,int index = 0,int choice = 0)
{
base.OnPlay(ref board, target,index);
board.GetCard(Id).CurrentHealth += board.Hand.Count;
board.GetCard(Id).maxHealth += board.Hand.Count;
}