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

Function paintScreenPathable

plugins/pathable.cpp:135–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135static void paintScreenPathable(df::coord target, bool show_hidden = false) {
136 DEBUG(log).print("entering paintScreen\n");
137
138 PaintCtx ctx;
139 unordered_set<df::coord> targets;
140 targets.emplace(target);
141 paint_screen(ctx, targets, show_hidden, [&](const df::coord & pos){
142 return Maps::canWalkBetween(target, pos);
143 });
144}
145
146static bool get_depot_coords(color_ostream &out, unordered_set<df::coord> * depot_coords) {
147 CHECK_NULL_POINTER(depot_coords);

Callers

nothing calls this directly

Calls 2

paint_screenFunction · 0.85
printMethod · 0.45

Tested by

no test coverage detected