Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
67
ShapeMap arr;
68
69
bool 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
74
typedef std::tuple<bool, bool, bool, bool> DirectionKey;
Callers
1
get_pen
Function · 0.85
Calls
1
count
Method · 0.45
Tested by
no test coverage detected