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

Method isVisible

library/modules/Units.cpp:138–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138bool Units::isVisible(df::unit *unit) {
139 CHECK_NULL_POINTER(unit);
140 return Maps::isTileVisible(getPosition(unit));
141}
142
143bool Units::isCitizen(df::unit *unit, bool include_insane) {
144 CHECK_NULL_POINTER(unit);

Callers

nothing calls this directly

Calls 1

isTileVisibleFunction · 0.85

Tested by

no test coverage detected