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

Method isCrashed

src/Savegame/Ufo.cpp:382–385  ·  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

380 * @return Crashed status.
381 */
382bool Ufo::isCrashed() const
383{
384 return (_damage > _rules->getMaxDamage() / 2);
385}
386
387/**
388 * Returns if this UFO took enough damage

Callers 11

operator()Method · 0.80
animateMethod · 0.80
moveMethod · 0.80
btnMinimizeClickMethod · 0.80
btnStandoffClickMethod · 0.80
btnCautiousClickMethod · 0.80
btnStandardClickMethod · 0.80
btnAggressiveClickMethod · 0.80
btnDisengageClickMethod · 0.80
ufoBreakOffMethod · 0.80
drawUfoMethod · 0.80

Calls 1

getMaxDamageMethod · 0.45

Tested by

no test coverage detected