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

Method getPayloadType

game/state/shared/aequipment.cpp:886–893  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

884}
885
886StateRef<AEquipmentType> AEquipment::getPayloadType() const
887{
888 if (type->type == AEquipmentType::Type::Weapon && type->ammo_types.size() > 0)
889 {
890 return payloadType;
891 }
892 return type;
893}
894
895bool AEquipment::canFire(GameState &state) const
896{

Callers 14

getAutoreloadAmmoTypeFunction · 0.80
loadImagePacksMethod · 0.80
loadAnimationPacksMethod · 0.80
updateMethod · 0.80
updateTBMethod · 0.80
updateFiringMethod · 0.80
triggerProximityMethod · 0.80
triggerBrainsuckersMethod · 0.80
executeAIActionMethod · 0.80
getWeaponDecisionMethod · 0.80
getGrenadeDecisionMethod · 0.80
routineMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected