本文整理汇总了C#中CardState类的典型用法代码示例。如果您正苦于以下问题:C# CardState类的具体用法?C# CardState怎么用?C# CardState使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CardState类属于命名空间,在下文中一共展示了CardState类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: AbilityContainerExt
public AbilityContainerExt(Card _card, CardState _cardState, int _idx, Card _effectOwner = null)
{
card = _card;
cardState = _cardState;
idx = _idx;
effectOwner = _effectOwner;
}
开发者ID:Javierudec,项目名称:VGOnline_Scripts,代码行数:7,代码来源:AbilityManagerExt.cs
示例2: Auto
public override void Auto(CardState cs, Card effectOwner)
{
if(cs == CardState.EndTurn)
{
_AuxBool = false;
}
}
开发者ID:Javierudec,项目名称:VGOnline_Scripts,代码行数:7,代码来源:ImperialDaughter.cs
示例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();
}
}
}
开发者ID:Javierudec,项目名称:VGOnline_Scripts,代码行数:25,代码来源:RevengerDesperateDragon.cs
示例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);
}
}
}
开发者ID:Javierudec,项目名称:VGOnline_Scripts,代码行数:25,代码来源:OracleQueenHimiko.cs
示例5: Auto
public override void Auto(CardState cs, Card ownerEffect)
{
if(cs == CardState.EndTurn)
{
bCanUseAct1 = true;
}
}
开发者ID:Javierudec,项目名称:VGOnline_Scripts,代码行数:7,代码来源:SilverThornEmpressVenusLuquier.cs
示例6: Auto
public override void Auto(CardState cs, Card ownerEffect)
{
if(cs == CardState.EndTurn)
{
ReturnToHand(OwnerCard);
}
}
开发者ID:Javierudec,项目名称:VGOnline_Scripts,代码行数:7,代码来源:CovertDemonicDragonKaburabloom.cs
示例7: Auto
public override void Auto(CardState cs, Card effectOwner)
{
if(cs == CardState.Attacking)
{
IncreasePowerByBattle(OwnerCard, 2000);
}
}
开发者ID:Javierudec,项目名称:VGOnline_Scripts,代码行数:7,代码来源:Eisenkugel.cs
示例8: Auto
public override void Auto(CardState cs, Card ownerEffect)
{
if(cs == CardState.Attacking)
{
IncreasePowerByTurn(OwnerCard, 2000);
}
}
开发者ID:Javierudec,项目名称:VGOnline_Scripts,代码行数:7,代码来源:StealthDragonRoyaleNova.cs
示例9: Auto
public override void Auto(CardState cs, Card ownerEffect)
{
if(cs == CardState.EndTurn)
{
MoveToSoul(OwnerCard);
}
}
开发者ID:Javierudec,项目名称:VGOnline_Scripts,代码行数:7,代码来源:SilveThornBeastTamerMaricica.cs
示例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);
}
}
开发者ID:Javierudec,项目名称:VGOnline_Scripts,代码行数:26,代码来源:SealedDemonDragonDungaree.cs
示例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);
}
}
开发者ID:Javierudec,项目名称:VGOnline_Scripts,代码行数:28,代码来源:AmonsFollowerFateCollector.cs
示例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);
}
}
开发者ID:Javierudec,项目名称:VGOnline_Scripts,代码行数:26,代码来源:BlueStormDragonMaelstrom.cs
示例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;
}
开发者ID:amiheenko,项目名称:MTSAccess,代码行数:30,代码来源:Access.cs
示例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();
}
}
}
开发者ID:Javierudec,项目名称:VGOnline_Scripts,代码行数:27,代码来源:NoLifeKingDeathAnchor.cs
示例15: Auto
public override void Auto(CardState cs, Card ownerEffect)
{
if(cs == CardState.EndTurn)
{
UnsetBool(1);
}
}
开发者ID:Javierudec,项目名称:VGOnline_Scripts,代码行数:7,代码来源:DemonMarquisAmonReverse.cs
示例16: Auto
public override void Auto(CardState cs, Card ownerEffect)
{
if(cs == CardState.Attacking)
{
if(GetDefensor().IsVanguard())
{
SetBool(2);
}
}
else if(cs == CardState.EndBattle)
{
if(GetBool(2)
&& GetBool(1)
&& VC ())
{
StandUnit(OwnerCard);
}
UnsetBool(2);
}
else if(cs == CardState.EndTurn)
{
UnsetBool(1);
}
}
开发者ID:Javierudec,项目名称:VGOnline_Scripts,代码行数:25,代码来源:DeadliestBeastDeityEthicsBusterReverse.cs
示例17: Auto
public override void Auto(CardState cs, Card ownerEffect)
{
if(cs == CardState.Attacking)
{
if(VC ()
&& LimitBreak(4)
&& CB(1)
&& NumUnits(delegate(Card c) { return c.IsStand(); }) > 0
&& Game.numBattle >= 4
&& GetDefensor().IsVanguard())
{
DisplayConfirmationWindow();
}
}
else if(cs == CardState.AttackNotHit)
{
if(bExtraSkill)
{
if(VC()
&& GetDeck().Size() > 0
&& NumEnemyUnits(delegate(Card c) { return true; }) > 0)
{
bActiveExtraSkill = true;
ShowAndDelay();
}
}
}
else if(cs == CardState.EndBattle)
{
bExtraSkill = false;
}
}
开发者ID:Javierudec,项目名称:VGOnline_Scripts,代码行数:32,代码来源:BlueStormKarmaDragonMaelstromReverse.cs
示例18: Auto
public override void Auto(CardState cs, Card ownerEffect)
{
if(cs == CardState.Call_NotMe)
{
if(ownerEffect.name.Contains("Reverse")
&& NumEnemyUnits(delegate(Card c) { return true; }) > 0
&& bCanUseAUTO2)
{
bLockEnemyUnit = true;
ShowAndDelay();
}
}
else if(cs == CardState.EndTurn)
{
bCanUseAUTO2 = true;
}
else if(cs == CardState.BeginMain)
{
if(VC ()
&& LimitBreak(5)
&& NumEnemyUnits(delegate(Card c) { return c.IsLocked(); }, true, true) >= 5)
{
bUseAUTO1 = true;
ShowAndDelay();
}
}
}
开发者ID:Javierudec,项目名称:VGOnline_Scripts,代码行数:27,代码来源:StarVaderOmegaGlendios.cs
示例19: Auto
public override void Auto(CardState cs, Card ownerEffect)
{
if(cs == CardState.EndTurn)
{
FromFieldToDeck(OwnerCard, true);
}
}
开发者ID:Javierudec,项目名称:VGOnline_Scripts,代码行数:7,代码来源:StealthRogueOfDemonicHairGurenjishi.cs
示例20: Auto
public override void Auto(CardState cs, Card ownerEffect)
{
if(cs == CardState.EndTurn)
{
bCanUseExtraAbility = false;
}
else if(cs == CardState.Attacking)
{
if(GetDefensor ().IsVanguard())
{
bCanActiveExtraAbility = true;
}
}
else if(cs == CardState.EndBattle)
{
if(bCanUseExtraAbility
&& bCanActiveExtraAbility
&& VC()
&& HandSize(delegate(Card c) { return c.BelongsToClan("Kagero"); }) >= 2)
{
bExtAuto = true;
DisplayConfirmationWindow();
}
bCanActiveExtraAbility = false;
}
}
开发者ID:Javierudec,项目名称:VGOnline_Scripts,代码行数:27,代码来源:DragonicOverlordTheRebirth.cs
注:本文中的CardState类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论