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

Method isInRange

plugins/siege-engine.cpp:358–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356 df::coord getTargetSize() { return target.second - target.first; }
357
358 bool isInRange(int dist) {
359 return dist >= fire_range.first && dist <= fire_range.second;
360 }
361};
362
363static std::map<df::building*, EngineInfo*> engines;

Callers 11

calcTileStatusFunction · 0.80
findHitsMethod · 0.80
aimAtAreaMethod · 0.80
isAddrFunction · 0.80
isAddrAtFunction · 0.80
memviewFunction · 0.80
mightBeVecFunction · 0.80
inAnyRangeFunction · 0.80
df_vectorsFunction · 0.80
is_valid_dereferenceMethod · 0.80
get_vtable_nameMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected