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

Method ufoBreakOff

src/Geoscape/DogfightState.cpp:1451–1458  ·  view source on GitHub ↗

* Sets UFO to break off mode. Started via timer. */

Source from the content-addressed store, hash-verified

1449 * Sets UFO to break off mode. Started via timer.
1450 */
1451void DogfightState::ufoBreakOff()
1452{
1453 if(!_ufo->isCrashed() && !_ufo->isDestroyed() && !_craft->isDestroyed())
1454 {
1455 _ufo->setSpeed(_ufo->getRules()->getMaxSpeed());
1456 _ufoBreakingOff = true;
1457 }
1458}
1459
1460/*
1461 * Draws the UFO blob on the radar screen.

Callers

nothing calls this directly

Calls 5

isCrashedMethod · 0.80
isDestroyedMethod · 0.45
setSpeedMethod · 0.45
getMaxSpeedMethod · 0.45
getRulesMethod · 0.45

Tested by

no test coverage detected