示例#1
0
 public ActivatedAbility(CostEvent.CostGen[] costs, Func <OID, bool> condition, EffectEvent.Effect[] effects, Target[] targets)
 {
     this.costs.AddRange(costs);
     this.condition = condition;
     resolution     = new ResolutionAbility(effects, targets);
     SetConditionIfNull();
 }
示例#2
0
 public AbilityObject(OID source, ResolutionAbility resolutionAbility, AbilityType abilityType)
 {
     this.source            = source;
     this.resolutionAbility = resolutionAbility;
     this.abilityType       = abilityType;
 }
示例#3
0
 public GenerateAbilityObjectEvent(OID source, ResolutionAbility resolution, AbilityObject.AbilityType abilityType)
     : base(source)
 {
     this.resolution  = resolution;
     this.abilityType = abilityType;
 }