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

Function is_rough_wall

plugins/dig.cpp:247–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247static bool is_rough_wall(int16_t x, int16_t y, int16_t z) {
248 df::tiletype *tt = Maps::getTileType(x, y, z);
249 if (!tt)
250 return false;
251
252 return tileShape(*tt) == df::tiletype_shape::WALL &&
253 tileSpecial(*tt) != df::tiletype_special::SMOOTH;
254}
255
256static bool is_smooth_wall(const df::coord &pos) {
257 df::tiletype *tt = Maps::getTileType(pos);

Callers 1

is_aquiferFunction · 0.85

Calls 3

getTileTypeFunction · 0.85
tileShapeFunction · 0.85
tileSpecialFunction · 0.85

Tested by

no test coverage detected