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

Method canFire

game/state/shared/aequipment.cpp:895–898  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

893}
894
895bool AEquipment::canFire(GameState &state) const
896{
897 return (type->type == AEquipmentType::Type::Weapon && ammo > 0 && canBeUsed(state));
898}
899
900bool AEquipment::canFire(GameState &state, Vec3<float> to) const
901{

Callers 1

Calls 1

getMuzzleLocationMethod · 0.45

Tested by

no test coverage detected