Bazaar developer reference

CvPolicyBranchEntry::GetFreePolicy() const

Defined in
CvPolicyClasses.cpp, line 2381
Class
CvPolicyBranchEntry
Hook name
CivHooks::CvPolicyBranchEntry_GetFreePolicy

Hooks

static bool BeforeCvPolicyBranchEntry_GetFreePolicy(const CvPolicyBranchEntry* self, int& result);static void AfterCvPolicyBranchEntry_GetFreePolicy(const CvPolicyBranchEntry* self, int& result);static int ReplaceCvPolicyBranchEntry_GetFreePolicy(int (*original)(const CvPolicyBranchEntry*), const CvPolicyBranchEntry* self);CivRegisterBefore<CivHooks::CvPolicyBranchEntry_GetFreePolicy>(host, &BeforeCvPolicyBranchEntry_GetFreePolicy);CivRegisterAfter<CivHooks::CvPolicyBranchEntry_GetFreePolicy>(host, &AfterCvPolicyBranchEntry_GetFreePolicy);CivRegisterReplace<CivHooks::CvPolicyBranchEntry_GetFreePolicy>(host, &ReplaceCvPolicyBranchEntry_GetFreePolicy);

Code

2380/// Do we get a Policy for free with this (they'd be invisible - a way to give branches bonuses)2381int CvPolicyBranchEntry::GetFreePolicy() const2382{2383	return m_iFreePolicy;2384}

Called by