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

Function is_smooth_wall

plugins/dig-now.cpp:566–572  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

564}
565
566static bool is_smooth_wall(MapExtras::MapCache &map, const DFCoord &pos) {
567 if (!map.ensureBlockAt(pos))
568 return false;
569 df::tiletype tt = map.tiletypeAt(pos);
570 return tileSpecial(tt) == df::tiletype_special::SMOOTH
571 && tileShape(tt) == df::tiletype_shape::WALL;
572}
573
574static bool is_connector(MapExtras::MapCache &map, const DFCoord &pos) {
575 df::building *bld = Buildings::findAtTile(pos);

Callers 3

adjust_smooth_wall_dirFunction · 0.70
smooth_tileFunction · 0.70

Calls 3

tileSpecialFunction · 0.85
tileShapeFunction · 0.85
tiletypeAtMethod · 0.80

Tested by

no test coverage detected