248 int gtype = g->
Type();
280 int gtype = g->
Type();
283 int current_zone_need = 0;
284 int highest_zone_need = 0;
310 possible_zones.
append(zone);
313 current_zone_need = need;
315 current_force = force;
318 if (need > highest_zone_need) {
319 highest_zone_need = need;
321 highest_force = force;
327 ZoneForce* assigned_force = current_force;
329 if (highest_zone_need > current_zone_need) {
330 assigned_zone = highest_zone;
331 assigned_force = highest_force;
336 if (!assigned_zone) {
340 int nzones = possible_zones.
size();
343 assigned_zone = possible_zones.
at(n);
347 if (assigned_force && assigned_zone) {
379 int gtype = g->
Type();
382 int current_zone_need = 0;
383 int highest_zone_need = 0;
406 possible_zones.
append(zone);
413 current_zone_need = need;
415 current_force = force;
418 if (need > highest_zone_need) {
419 highest_zone_need = need;
421 highest_force = force;
426 if (highest_zone_need > current_zone_need) {
437 int nzones = possible_zones.
size();
440 current_zone = possible_zones.
at(n);