public int[] Execute(UnitCollection units, RuleArgs args) { int[] result = new int[m_rules.Count]; int pos = 0; foreach (Rule rule in m_rules) { result[pos++] = rule.Execute(units, args); } return(result); }
public abstract int Execute(UnitCollection units, RuleArgs args);
public override int Execute(UnitCollection units, RuleArgs args) { return(m_rule(units, args)); }