| 180 | // Check if unit is inside the cuboid area. |
| 181 | DFHACK_EXPORT bool isUnitInBox(df::unit *u, const cuboid &box); |
| 182 | DFHACK_EXPORT inline bool isUnitInBox(df::unit *u, int16_t x1, int16_t y1, int16_t z1, |
| 183 | int16_t x2, int16_t y2, int16_t z2) { return isUnitInBox(u, cuboid(x1, y1, z1, x2, y2, z2)); } |
| 184 | DFHACK_EXPORT inline bool isUnitInBox(df::unit *u, df::coord pos1, df::coord pos2) { return isUnitInBox(u, cuboid(pos1, pos2)); } |
| 185 | |
| 186 | // Fill vector with units in box matching filter. |
no test coverage detected