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

Method getHealth

src/Savegame/BattleUnit.cpp:858–861  ·  view source on GitHub ↗

* Returns the soldier's amount of health. * @return Health. */

Source from the content-addressed store, hash-verified

856 * @return Health.
857 */
858int BattleUnit::getHealth() const
859{
860 return _health;
861}
862
863/**
864 * Returns the soldier's amount of morale.

Callers 15

thinkMethod · 0.80
thinkMethod · 0.80
evaluateAIModeMethod · 0.80
explosiveEfficacyMethod · 0.80
updateStatsMethod · 0.80
initMethod · 0.80
thinkMethod · 0.80
evaluateAIModeMethod · 0.80
checkForCasualtiesMethod · 0.80
tallyUnitsMethod · 0.80
onHealClickMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected