| 766 | } |
| 767 | |
| 768 | WatchedRace * checkRaceStocksProtected(color_ostream &out, int race) { |
| 769 | WatchedRace * w = new WatchedRace(out, race, true, 0, 0, 0, 0); |
| 770 | for (auto unit : world->units.active) { |
| 771 | if (unit->race != race) |
| 772 | continue; |
| 773 | |
| 774 | if (isInappropriateUnit(unit)) |
| 775 | continue; |
| 776 | |
| 777 | if (!Units::isTame(unit) || isProtectedUnit(unit)) |
| 778 | w->PushButcherableUnit(unit); |
| 779 | } |
| 780 | return w; |
| 781 | } |
| 782 | |
| 783 | WatchedRace * checkRaceStocksButcherable(color_ostream &out, int race) { |
| 784 | WatchedRace * w = new WatchedRace(out, race, true, 0, 0, 0, 0); |
no test coverage detected