| 668 | } |
| 669 | |
| 670 | bool Units::isUnitInBox(df::unit *u, const cuboid &box) { |
| 671 | CHECK_NULL_POINTER(u); |
| 672 | if (!isActive(u)) |
| 673 | return false; |
| 674 | return box.containsPos(getPosition(u)); |
| 675 | } |
| 676 | |
| 677 | bool Units::getUnitsInBox(vector<df::unit *> &units, const cuboid &box, std::function<bool(df::unit *)> filter) { |
| 678 | if (!world) |
nothing calls this directly
no test coverage detected