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

Method canAddEquipment

game/state/shared/agent.cpp:415–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413}
414
415bool Agent::canAddEquipment(Vec2<int> pos, StateRef<AEquipmentType> equipmentType) const
416{
417 EquipmentSlotType slotType = EquipmentSlotType::General;
418 return canAddEquipment(pos, equipmentType, slotType);
419}
420
421bool Agent::canAddEquipment(Vec2<int> pos, StateRef<AEquipmentType> equipmentType,
422 EquipmentSlotType &slotType) const

Callers

nothing calls this directly

Calls 3

isArmorEquipmentSlotFunction · 0.85
withinMethod · 0.80
intersectsMethod · 0.80

Tested by

no test coverage detected