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

Method isDestroyed

src/Savegame/Ufo.cpp:392–395  ·  view source on GitHub ↗

* Returns if this UFO took enough damage * to cause it to crash. * @return Crashed status. */

Source from the content-addressed store, hash-verified

390 * @return Crashed status.
391 */
392bool Ufo::isDestroyed() const
393{
394 return (_damage >= _rules->getMaxDamage());
395}
396
397/**
398 * Calculates the direction for the UFO based

Callers 11

time5SecondsMethod · 0.45
animateMethod · 0.45
moveMethod · 0.45
btnMinimizeClickMethod · 0.45
btnStandoffClickMethod · 0.45
btnCautiousClickMethod · 0.45
btnStandardClickMethod · 0.45
btnAggressiveClickMethod · 0.45
btnDisengageClickMethod · 0.45
ufoBreakOffMethod · 0.45
drawUfoMethod · 0.45

Calls 1

getMaxDamageMethod · 0.45

Tested by

no test coverage detected