| 675 | } |
| 676 | |
| 677 | bool Units::getUnitsInBox(vector<df::unit *> &units, const cuboid &box, std::function<bool(df::unit *)> filter) { |
| 678 | if (!world) |
| 679 | return false; |
| 680 | |
| 681 | units.clear(); |
| 682 | for (auto unit : world->units.active) |
| 683 | if (isUnitInBox(unit, box) && filter(unit)) |
| 684 | units.push_back(unit); |
| 685 | return true; |
| 686 | } |
| 687 | |
| 688 | static int32_t get_noble_position_id(const df::historical_entity::T_positions &positions, const string &noble) { |
| 689 | string target_id = toUpper_cp437(noble); |
nothing calls this directly
no test coverage detected