Bazaar developer reference

CvPolicyEntry::IsOneShot() const

Defined in
CvPolicyClasses.cpp, line 1794
Class
CvPolicyEntry
Hook name
CivHooks::CvPolicyEntry_IsOneShot

Hooks

static bool BeforeCvPolicyEntry_IsOneShot(const CvPolicyEntry* self, bool& result);static void AfterCvPolicyEntry_IsOneShot(const CvPolicyEntry* self, bool& result);static bool ReplaceCvPolicyEntry_IsOneShot(bool (*original)(const CvPolicyEntry*), const CvPolicyEntry* self);CivRegisterBefore<CivHooks::CvPolicyEntry_IsOneShot>(host, &BeforeCvPolicyEntry_IsOneShot);CivRegisterAfter<CivHooks::CvPolicyEntry_IsOneShot>(host, &AfterCvPolicyEntry_IsOneShot);CivRegisterReplace<CivHooks::CvPolicyEntry_IsOneShot>(host, &ReplaceCvPolicyEntry_IsOneShot);

Code

1793/// Is this a one shot policy effect1794bool CvPolicyEntry::IsOneShot() const1795{1796	return m_bOneShot;1797}

Called by