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

Function is_wall

plugins/dig.cpp:242–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242static bool is_wall(const df::coord &pos) {
243 df::tiletype *tt = Maps::getTileType(pos);
244 return tt && tileShape(*tt) == df::tiletype_shape::WALL;
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);

Callers 2

paintScreenWarmDampFunction · 0.70

Calls 2

getTileTypeFunction · 0.85
tileShapeFunction · 0.85

Tested by

no test coverage detected