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

Function is_leaky

plugins/aquifer.cpp:63–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63bool is_leaky(int16_t x, int16_t y, int16_t z) {
64 return is_open(x, y, z-1) ||
65 is_open(x, y-1, z) ||
66 is_open(x-1, y, z) ||
67 is_open(x+1, y, z) ||
68 is_open(x, y+1, z);
69}
70
71bool is_leaky(const df::coord & pos) {
72 return is_leaky(pos.x, pos.y, pos.z);

Callers 4

aquifer_listFunction · 0.85
aquifer_drainFunction · 0.85
aquifer_convertFunction · 0.85
aquifer_addFunction · 0.85

Calls 1

is_openFunction · 0.85

Tested by

no test coverage detected