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