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

Function has_point

plugins/design.cpp:69–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67ShapeMap arr;
68
69bool has_point(int x, int y) {
70 return arr.count(x) != 0 && arr.at(x).count(y) != 0;
71};
72
73// Key tuple is N, W, E, S
74typedef std::tuple<bool, bool, bool, bool> DirectionKey;

Callers 1

get_penFunction · 0.85

Calls 1

countMethod · 0.45

Tested by

no test coverage detected