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

Method isPistol

src/Ruleset/RuleItem.cpp:798–801  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

796* @return whether or not it is a pistol.
797*/
798bool RuleItem::isPistol() const
799{
800 return (_battleType == BT_FIREARM || _battleType == BT_MELEE) && !_twoHanded;
801}
802
803/**
804 * Gets the number of projectiles this ammo shoots at once.

Callers 1

deployXCOMMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected