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));
 }