Bazaar developer reference

CvPlayerPolicies::IsPolicyBranchFinished(PolicyBranchTypes) const

Defined in
CvPolicyClasses.cpp, line 4217
Class
CvPlayerPolicies
Hook name
CivHooks::CvPlayerPolicies_IsPolicyBranchFinished

Hooks

static bool BeforeCvPlayerPolicies_IsPolicyBranchFinished(const CvPlayerPolicies* self, PolicyBranchTypes eBranchType, bool& result);static void AfterCvPlayerPolicies_IsPolicyBranchFinished(const CvPlayerPolicies* self, PolicyBranchTypes eBranchType, bool& result);static bool ReplaceCvPlayerPolicies_IsPolicyBranchFinished(bool (*original)(const CvPlayerPolicies*, PolicyBranchTypes), const CvPlayerPolicies* self, PolicyBranchTypes eBranchType);CivRegisterBefore<CivHooks::CvPlayerPolicies_IsPolicyBranchFinished>(host, &BeforeCvPlayerPolicies_IsPolicyBranchFinished);CivRegisterAfter<CivHooks::CvPlayerPolicies_IsPolicyBranchFinished>(host, &AfterCvPlayerPolicies_IsPolicyBranchFinished);CivRegisterReplace<CivHooks::CvPlayerPolicies_IsPolicyBranchFinished>(host, &ReplaceCvPlayerPolicies_IsPolicyBranchFinished);

Code

4216/// Accessor: is eBranchType finished?4217bool CvPlayerPolicies::IsPolicyBranchFinished(PolicyBranchTypes eBranchType) const4218{4219	CvAssertMsg(eBranchType >= 0, "eIndex is expected to be non-negative (invalid Index)");4220	CvAssertMsg(eBranchType < m_pPolicies->GetNumPolicyBranches(), "eIndex is expected to be within maximum bounds (invalid Index)");4221	return m_pabPolicyBranchFinished[eBranchType];4222}

Called by