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

Function is_open

plugins/aquifer.cpp:57–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55//
56
57bool is_open(int16_t x, int16_t y, int16_t z) {
58 df::tiletype *tt = Maps::getTileType(x, y, z);
59 if (!tt) return false;
60 return ENUM_ATTR(tiletype_shape, passable_flow, tileShape(*tt));
61}
62
63bool is_leaky(int16_t x, int16_t y, int16_t z) {
64 return is_open(x, y, z-1) ||

Callers 1

is_leakyFunction · 0.85

Calls 2

getTileTypeFunction · 0.85
tileShapeFunction · 0.85

Tested by

no test coverage detected