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

Method isFatallyWounded

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

Source from the content-addressed store, hash-verified

202}
203
204bool BattleUnit::isFatallyWounded()
205{
206 for (auto &e : fatalWounds)
207 {
208 if (e.second > 0)
209 {
210 return true;
211 }
212 }
213 return false;
214}
215
216void BattleUnit::setPosition(GameState &state, const Vec3<float> &pos, bool goal)
217{

Callers 2

createAgentInfoMethod · 0.80
renderMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected