MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / abortPath

Method abortPath

src/Battlescape/Pathfinding.cpp:543–547  ·  view source on GitHub ↗

* Aborts the current path. Clears the path vector. */

Source from the content-addressed store, hash-verified

541 * Aborts the current path. Clears the path vector.
542 */
543void Pathfinding::abortPath()
544{
545 _totalTUCost = 0;
546 _path.clear();
547}
548
549
550/**

Callers 9

thinkMethod · 0.80
setupPatrolMethod · 0.80
setupEscapeMethod · 0.80
selectPointNearTargetMethod · 0.80
wayPointActionMethod · 0.80
thinkMethod · 0.80
cancelMethod · 0.80
setupEscapeMethod · 0.80
setupPatrolMethod · 0.80

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected