本文整理匯總了C#中CardState類的典型用法代碼示例。如果您正苦於以下問題:C# CardState類的具體用法?C# CardState怎麽用?C# CardState使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
CardState類屬於命名空間,在下文中一共展示了CardState類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: AbilityContainerExt
public AbilityContainerExt(Card _card, CardState _cardState, int _idx, Card _effectOwner = null)
{
card = _card;
cardState = _cardState;
idx = _idx;
effectOwner = _effectOwner;
}
示例2: Auto
public override void Auto(CardState cs, Card effectOwner)
{
if(cs == CardState.EndTurn)
{
_AuxBool = false;
}
}
示例3: Auto
public override void Auto(CardState cs, Card ownerEffect)
{
if(cs == CardState.Attacking)
{
if(GetDefensor().IsVanguard()
&& NumUnits(delegate(Card c) { return true; }) > NumEnemyUnits(delegate(Card c) { return true; })
&& LimitBreak(4)
&& CB(1, delegate(Card c) { return c.name.Contains("Revenger"); })
&& VC())
{
bUseAuto1 = true;
DisplayConfirmationWindow();
}
}
else if(cs == CardState.BeginMain)
{
if(VC ()
&& NumUnits (delegate(Card c) { return c.BelongsToClan("Shadow Paladin"); }) > 0
&& NumEnemyUnits(delegate(Card c) { return true; }) > 0)
{
bUseAuto2 = true;
DisplayConfirmationWindow();
}
}
}
示例4: Auto
public override void Auto(CardState cs, Card ownerEffect)
{
if(cs == CardState.RideAboveIt)
{
if(LimitBreak(4) && VanguardIs("Genesis"))
{
IncreasePowerByTurn(GetVanguard(), 10000);
GetVanguard().unitAbilities.AddUnitObject(new OracleQueenHimikoExternEffect());
if(NumUnits(delegate(Card c) { return c.BelongsToClan("Genesis"); }) > 0)
{
StartEffect();
ShowAndDelay();
}
}
}
else if(cs == CardState.Attacking)
{
if(VC() && GetDeck().Size() > 0 && GetDefensor().IsVanguard())
{
StartEffect();
ShowAndDelay();
SetBool(1);
}
}
}
示例5: Auto
public override void Auto(CardState cs, Card ownerEffect)
{
if(cs == CardState.EndTurn)
{
bCanUseAct1 = true;
}
}
示例6: Auto
public override void Auto(CardState cs, Card ownerEffect)
{
if(cs == CardState.EndTurn)
{
ReturnToHand(OwnerCard);
}
}
示例7: Auto
public override void Auto(CardState cs, Card effectOwner)
{
if(cs == CardState.Attacking)
{
IncreasePowerByBattle(OwnerCard, 2000);
}
}
示例8: Auto
public override void Auto(CardState cs, Card ownerEffect)
{
if(cs == CardState.Attacking)
{
IncreasePowerByTurn(OwnerCard, 2000);
}
}
示例9: Auto
public override void Auto(CardState cs, Card ownerEffect)
{
if(cs == CardState.EndTurn)
{
MoveToSoul(OwnerCard);
}
}
示例10: Auto
public override void Auto(CardState cs, Card effectOwner)
{
if(cs == CardState.Ride)
{
cardStorage.Clear();
SetBool(2);
if(Game.playerDeck.Size() >= 2)
{
StartEffect();
cardStorage.Add(Game.playerDeck.GetByIndex(0));
cardStorage.Add(Game.playerDeck.GetByIndex(1));
_AuxList_Card = new List<Card>();
_AuxList_Card.Add(Game.playerDeck.GetByIndex(0));
_AuxList_Card.Add(Game.playerDeck.GetByIndex(1));
BindFromDeck(_AuxList_Card);
}
}
else if(cs == CardState.BeginMain)
{
SetBool(2);
}
}
示例11: Auto
public override void Auto(CardState cs, Card ownerEffect)
{
if(cs == CardState.RideAboveIt)
{
Forerunner("Dark Irregulars");
}
else if(cs == CardState.Boost)
{
Card tmp = OwnerCard.boostedUnit;
if(RC()
&& tmp.BelongsToClan("Dark Irregulars")
&& NumUnits (delegate(Card c) { return c.BelongsToClan("Dark Irregulars"); }) >= 6)
{
SetBool(2);
}
}
else if(cs == CardState.EndBattle_NotMe)
{
if(GetBool (2)
&& GetDeck().Size() > 0)
{
SetBool(1);
DisplayConfirmationWindow();
}
UnsetBool(2);
}
}
示例12: Auto
public override void Auto(CardState cs, Card effectOwner)
{
if(cs == CardState.Attacking)
{
if(VC ()
&& GetDefensor().IsVanguard()
&& LimitBreak(4)
&& Game.numBattle >= 4)
{
IncreasePowerByBattle(OwnerCard, 5000);
SetBool(1);
}
}
else if(cs == CardState.AttackHits)
{
if(GetBool(1) && CB (1))
{
UnsetBool(1);
DisplayConfirmationWindow();
}
}
else if(cs == CardState.EndBattle)
{
UnsetBool(1);
}
}
示例13: GetGroupAccessData
/// <summary>
/// Метод, возвращающий права для группы по умолчанию, в зависимости от карточки и её статуса
/// </summary>
/// <param name="Group">Группа</param>
/// <returns></returns>
private static AccessData GetGroupAccessData(SPWeb Web, SPGroup Group, SPListItem Item, CardState State, List<string> Companies)
{
AccessData result = new AccessData();
switch (Item.ParentList.Title)
{
default: break;
case GlobalConstants.ListNames.ControlMeasures:
{
}
break;
case GlobalConstants.ListNames.Request:
{
}
break;
case GlobalConstants.ListNames.Inbox:
{
}
break;
case GlobalConstants.ListNames.Outbox:
{
}
break;
}
return result;
}
示例14: Auto
public override void Auto(CardState cs, Card ownerEffect)
{
if(cs == CardState.BeginMain)
{
if(VC ()
&& GetDeck ().Size() > 0)
{
SetBool(1);
StartEffect();
ShowAndDelay();
}
}
else if(cs == CardState.HelpZone_EndTurn)
{
StartEffect();
ShowAndDelay();
SetBool(2);
}
else if(cs == CardState.Attacking)
{
if(VC() &&
NumUnitsDamage(delegate(Card c) { return c.BelongsToClan("Dark Irregulars"); }) >= 5)
{
DisplayConfirmationWindow();
}
}
}
示例15: Auto
public override void Auto(CardState cs, Card ownerEffect)
{
if(cs == CardState.EndTurn)
{
UnsetBool(1);
}
}