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);
        }
Beispiel #2
0
 public abstract int Execute(UnitCollection units, RuleArgs args);
Beispiel #3
0
 public override int Execute(UnitCollection units, RuleArgs args)
 {
     return(m_rule(units, args));
 }