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

Function isEmptyPasture

plugins/autonestbox.cpp:165–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163//
164
165static bool isEmptyPasture(df::building_civzonest *zone) {
166 if (!Buildings::isPenPasture(zone))
167 return false;
168 return (zone->assigned_units.size() == 0);
169}
170
171static bool isInBuiltCage(df::unit *unit) {
172 for (auto building : world->buildings.all) {

Callers 1

getFreeNestboxZonesFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected