Exemplo n.º 1
0
 private ConditionDescription()
 {
     conditions    = new Condition[3];
     conditions[0] = new CombinedCondition(subType, values);
     conditions[1] = new CombinedCondition(subType, damageTypes);
     conditions[2] = new CombinedCondition(subType, charTypes);
 }
Exemplo n.º 2
0
 private ConditionDescription()
 {
     conditions = new Condition[3];
     conditions[0] = new CombinedCondition(subType, values);
     conditions[1] = new CombinedCondition(subType, damageTypes);
     conditions[2] = new CombinedCondition(subType, charTypes);
 }
Exemplo n.º 3
0
 private Effect ApplyConditions(Effect effect)
 {
     if(conditions.Length == 0)
         return effect;
     if(conditions.Length == 1)
         return new ConditionalEffect(effect, conditions[0]);
     Condition combined = new CombinedCondition(Combination.AllTrue,
                                                conditions);
     return new ConditionalEffect(effect, combined);
 }