| 736 | } |
| 737 | |
| 738 | df::unit *Units::getUnitByNobleRole(string noble) { |
| 739 | vector<df::unit *> units; |
| 740 | get_units_by_noble_role(units, noble, 1); |
| 741 | if (units.empty()) |
| 742 | return NULL; |
| 743 | return units[0]; |
| 744 | } |
| 745 | |
| 746 | void Units::forCitizens(std::function<void(df::unit *)> fn, bool exclude_residents, bool include_insane) { |
| 747 | for (auto unit : citizensRange(world->units.active, exclude_residents, include_insane)) |
nothing calls this directly
no test coverage detected