Britbot
static int [] Britbot.Commander.GetTargetsDimensions ( ) [inline, static, private]

Get the dimension vector which later will be used to create the iteration over all possible Group-Target assignments.

Returns:
array of numbers of priorities for each group

Definition at line 528 of file Commander.cs.

        {
            //allocate a new array for the dimensions of each group's target
            int[] dimensions = new int[Commander.Groups.Count];

            //go over all the groups and read number of priorities to dimension
            for (int i = 0; i < Groups.Count; i++)
                dimensions[i] = Commander.Groups[i].Priorities.Count;

            return dimensions;
        }