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