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

Method isOut

src/Savegame/BattleUnit.cpp:1092–1095  ·  view source on GitHub ↗

* Returns whether the soldier is out of combat, dead or unconscious. * A soldier that is out, cannot perform any actions, cannot be selected, but it's still a unit. * @return flag if out or not. */

Source from the content-addressed store, hash-verified

1090 * @return flag if out or not.
1091 */
1092bool BattleUnit::isOut() const
1093{
1094 return _status == STATUS_DEAD || _status == STATUS_UNCONSCIOUS;
1095}
1096
1097/**
1098 * Get the number of time units a certain action takes.

Callers 15

loadMethod · 0.80
selectUnitMethod · 0.80
endTurnMethod · 0.80
resetUnitTilesMethod · 0.80
getHighestRankedXComMethod · 0.80
prepareNewTurnMethod · 0.80
nextStageMethod · 0.80
thinkMethod · 0.80
explosiveEfficacyMethod · 0.80
meleeActionMethod · 0.80
validTargetMethod · 0.80
thinkMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected