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

Function is_aquifer

plugins/dig.cpp:262–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262static bool is_aquifer(int16_t x, int16_t y, int16_t z, df::tile_designation *des = NULL) {
263 if (!des)
264 des = Maps::getTileDesignation(x, y, z);
265 if (!des)
266 return false;
267 return des->bits.water_table && is_rough_wall(x, y, z);
268}
269
270static bool is_aquifer(const df::coord &pos, df::tile_designation *des = NULL) {
271 return is_aquifer(pos.x, pos.y, pos.z, des);

Callers 2

is_wetFunction · 0.85
paintScreenWarmDampFunction · 0.85

Calls 2

getTileDesignationFunction · 0.85
is_rough_wallFunction · 0.85

Tested by

no test coverage detected