| 781 | } |
| 782 | |
| 783 | WatchedRace * checkRaceStocksButcherable(color_ostream &out, int race) { |
| 784 | WatchedRace * w = new WatchedRace(out, race, true, 0, 0, 0, 0); |
| 785 | for (auto unit : world->units.active) { |
| 786 | if (unit->race != race) |
| 787 | continue; |
| 788 | |
| 789 | if ( isInappropriateUnit(unit) |
| 790 | || !Units::isTame(unit) |
| 791 | || isProtectedUnit(unit) |
| 792 | ) |
| 793 | continue; |
| 794 | |
| 795 | w->PushButcherableUnit(unit); |
| 796 | } |
| 797 | return w; |
| 798 | } |
| 799 | |
| 800 | WatchedRace * checkRaceStocksButcherFlag(color_ostream &out, int race) { |
| 801 | WatchedRace * w = new WatchedRace(out, race, true, 0, 0, 0, 0); |
no test coverage detected