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

Method getRules

src/Savegame/BattleItem.cpp:146–149  ·  view source on GitHub ↗

* Gets the ruleset for the item's type. * @return Pointer to ruleset. */

Source from the content-addressed store, hash-verified

144 * @return Pointer to ruleset.
145 */
146RuleItem *BattleItem::getRules() const
147{
148 return _rules;
149}
150
151/**
152 * Gets the turns until detonation. -1 = unprimed grenade

Callers 2

occupiesSlotMethod · 0.45
setAmmoItemMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected