Ejemplo n.º 1
0
 public WhenPlayerDiscardsCard(TriggerPredicate <PlayerDiscardsCardEvent> cond = null)
 {
     _cond = cond ?? delegate { return(true); };
 }
Ejemplo n.º 2
0
 public RelayTrigger(TriggerPredicate predicate, TriggerAction action, TriggerCondition condition)
 {
     CanExecute = predicate;
     Execute = action;
     Condition = condition;
 }
Ejemplo n.º 3
0
 public AutoNotifyPassiveSkillTrigger(TriggerSkill skill, TriggerPredicate canExecute, TriggerAction execute, TriggerCondition condition)
     : this(skill, new RelayTrigger(canExecute, execute, condition))
 {
 }
Ejemplo n.º 4
0
 public AutoNotifyUsagePassiveSkillTrigger(TriggerSkill skill, TriggerPredicate canExecute, TriggerActionWithCardsAndPlayers execute, TriggerCondition condition, ICardUsageVerifier verifier)
     : this(skill, new RelayTrigger(canExecute, null, condition), execute, verifier)
 {
 }
Ejemplo n.º 5
0
 public RelayTrigger(TriggerPredicate predicate, TriggerAction action, TriggerCondition condition)
 {
     CanExecute = predicate;
     Execute    = action;
     Condition  = condition;
 }
 public WhenPlayerSearchesLibrary(TriggerPredicate <Player> cond = null)
 {
     _cond = cond ?? delegate { return(true); };
 }
Ejemplo n.º 7
0
 public AutoNotifyUsagePassiveSkillTrigger(UsageTriggerSkill skill, TriggerPredicate canExecute, TriggerAction execute, TriggerCondition condition) :
     this(skill, new RelayTrigger(canExecute, execute, condition))
 {
 }
Ejemplo n.º 8
0
 public AutoNotifyUsagePassiveSkillTrigger(TriggerSkill skill, TriggerPredicate canExecute, TriggerActionWithCardsAndPlayers execute, TriggerCondition condition, ICardUsageVerifier verifier) :
     this(skill, new RelayTrigger(canExecute, null, condition), execute, verifier)
 {
 }
 public AfterAttackersAreDeclared(TriggerPredicate cond)
 {
     _cond = cond ?? delegate { return(true); };
 }