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

Method cancel

src/Battlescape/UnitWalkBState.cpp:462–466  ·  view source on GitHub ↗

* Aborts unit walking. */

Source from the content-addressed store, hash-verified

460 * Aborts unit walking.
461 */
462void UnitWalkBState::cancel()
463{
464 if (_parent->getSave()->getSide() == FACTION_PLAYER && _parent->getPanicHandled())
465 _pf->abortPath();
466}
467
468/**
469 * Handles some calculations when the path is finished.

Callers

nothing calls this directly

Calls 4

getSideMethod · 0.80
getSaveMethod · 0.80
getPanicHandledMethod · 0.80
abortPathMethod · 0.80

Tested by

no test coverage detected