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