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

Method hasTarget

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

Source from the content-addressed store, hash-verified

352 df::workshop_profile profile;
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

Callers 3

getTargetAreaFunction · 0.80
proposeUnitHitsFunction · 0.80
doCheckMovementMethod · 0.80

Calls 1

is_range_validFunction · 0.85

Tested by

no test coverage detected