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

Method getMaxHealth

game/state/city/vehicle.cpp:3326–3330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3324int Vehicle::getConstitution() const { return this->getHealth() + this->getShield(); }
3325
3326int Vehicle::getMaxHealth() const
3327{
3328 auto et = getEquipmentTypes();
3329 return this->type->getMaxHealth(et.begin(), et.end());
3330}
3331
3332int Vehicle::getHealth() const { return this->health; }
3333

Callers 9

getCapacityUsedMethod · 0.45
updateFallingMethod · 0.45
updateSlidingMethod · 0.45
repairVehiclesMethod · 0.45
applyDamageDirectMethod · 0.45
createVehicleInfoMethod · 0.45
createAgentInfoMethod · 0.45
handleKeyDownMethod · 0.45
handleMouseDownMethod · 0.45

Calls 2

endMethod · 0.80
beginMethod · 0.45

Tested by

no test coverage detected