|
Britbot
|
This function goes over all the groups, reads their priorities and arranges them in a 2-dimensional array: Each group has it's own row which contains all its possible targets. Note: it is a jagged array and each group may have different number of targets. We use array because it has quick access property which we will use heavily.
Definition at line 487 of file Commander.cs. {
//allocate array of array: array for each group's possible targets
Score[][] possibleTargets = new Score[Commander.Groups.Count][];
for (int i = 0; i < Commander.Groups.Count; i++)
{
//convert the priority list to an array (to enable quick access)
possibleTargets[i] = Commander.Groups[i].Priorities.ToArray();
}
//return the matrix
return possibleTargets;
}
|
1.7.6.1