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

Method getFatalWounds

src/Savegame/BattleUnit.cpp:1391–1397  ·  view source on GitHub ↗

* Get total amount of fatal wounds this unit has. * @return Number of fatal wounds. */

Source from the content-addressed store, hash-verified

1389 * @return Number of fatal wounds.
1390 */
1391int BattleUnit::getFatalWounds() const
1392{
1393 int sum = 0;
1394 for (int i = 0; i < 6; ++i)
1395 sum += _fatalWounds[i];
1396 return sum;
1397}
1398
1399
1400/**

Callers 3

initMethod · 0.80
hitMethod · 0.80
explodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected