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

Method posAtTime

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

Source from the content-addressed store, hash-verified

1247 }
1248
1249 df::coord posAtTime(float time, float *lmargin = NULL, float *rmargin = NULL)
1250 {
1251 CHECK_INVALID_ARGUMENT(time < MAX_TIME);
1252
1253 auto it = path.upper_bound(time);
1254 if (lmargin)
1255 get_margin(it, time, lmargin, rmargin);
1256 return it->second;
1257 }
1258
1259 bool findHits(EngineInfo *engine, std::vector<Hit> *hit_points, float bias)
1260 {

Callers 2

unitPosAtTimeFunction · 0.80
computeNearbyWeightFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected