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

Method isUnconscious

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

Source from the content-addressed store, hash-verified

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

Callers 2

advanceAlongPathMethod · 0.80
updateSelectedUnitsMethod · 0.80

Calls 1

getHealthMethod · 0.45

Tested by

no test coverage detected