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

Method getBio

game/state/city/vehicle.cpp:3531–3543  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3529}
3530
3531int Vehicle::getBio() const
3532{
3533 int cargoAmount = 0;
3534 for (auto &c : cargo)
3535 {
3536 if (c.type != Cargo::Type::Bio)
3537 {
3538 continue;
3539 }
3540 cargoAmount += c.count * c.space;
3541 }
3542 return cargoAmount;
3543}
3544
3545bool Vehicle::canAddEquipment(Vec2<int> pos, StateRef<VEquipmentType> type) const
3546{

Callers 2

updateCargoMethod · 0.80
exitBattleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected