MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / isDead

Method isDead

game/state/battle/battleunit.cpp:1401–1401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1399}
1400
1401bool BattleUnit::isDead() const { return agent->isDead() || destroyed; }
1402
1403bool BattleUnit::isUnconscious() const { return !isDead() && stunDamage >= agent->getHealth(); }
1404

Callers 8

killStrandedUnitsMethod · 0.45
abortMissionMethod · 0.45
tryDisableBuildingMethod · 0.45
spawnReinforcementsMethod · 0.45
finishBattleMethod · 0.45
advanceAlongPathMethod · 0.45
getGrenadeDecisionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected