MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / isRifle

Method isRifle

src/Ruleset/RuleItem.cpp:789–792  ·  view source on GitHub ↗

* is this item a rifle? * @return whether or not it is a rifle. */

Source from the content-addressed store, hash-verified

787* @return whether or not it is a rifle.
788*/
789bool RuleItem::isRifle() const
790{
791 return (_battleType == BT_FIREARM || _battleType == BT_MELEE) && _twoHanded;
792}
793
794/**
795* is this item a pistol?

Callers 1

deployXCOMMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected