本文整理汇总了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);
}
}