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

Method onTarget

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

Source from the content-addressed store, hash-verified

353
354 bool hasTarget() { return is_range_valid(target); }
355 bool onTarget(df::coord pos) { return is_in_range(target, pos); }
356 df::coord getTargetSize() { return target.second - target.first; }
357
358 bool isInRange(int dist) {

Callers 2

paintAimScreenFunction · 0.80
findHitsMethod · 0.80

Calls 1

is_in_rangeFunction · 0.85

Tested by

no test coverage detected