MCPcopy Create free account
hub / github.com/DFHack/dfhack / isUnitInBox

Function isUnitInBox

library/include/modules/Units.h:182–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180// Check if unit is inside the cuboid area.
181DFHACK_EXPORT bool isUnitInBox(df::unit *u, const cuboid &box);
182DFHACK_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)); }
184DFHACK_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.

Callers 2

units_isUnitInBoxFunction · 0.85
getUnitsInBoxMethod · 0.85

Calls 1

cuboidClass · 0.85

Tested by

no test coverage detected