Bazaar developer reference

CvPlayerPolicies::GetNumPolicyBranchesAllowed() const

Defined in
CvPolicyClasses.cpp, line 4293
Class
CvPlayerPolicies
Hook name
CivHooks::CvPlayerPolicies_GetNumPolicyBranchesAllowed

Hooks

static bool BeforeCvPlayerPolicies_GetNumPolicyBranchesAllowed(const CvPlayerPolicies* self, int& result);static void AfterCvPlayerPolicies_GetNumPolicyBranchesAllowed(const CvPlayerPolicies* self, int& result);static int ReplaceCvPlayerPolicies_GetNumPolicyBranchesAllowed(int (*original)(const CvPlayerPolicies*), const CvPlayerPolicies* self);CivRegisterBefore<CivHooks::CvPlayerPolicies_GetNumPolicyBranchesAllowed>(host, &BeforeCvPlayerPolicies_GetNumPolicyBranchesAllowed);CivRegisterAfter<CivHooks::CvPlayerPolicies_GetNumPolicyBranchesAllowed>(host, &AfterCvPlayerPolicies_GetNumPolicyBranchesAllowed);CivRegisterReplace<CivHooks::CvPlayerPolicies_GetNumPolicyBranchesAllowed>(host, &ReplaceCvPlayerPolicies_GetNumPolicyBranchesAllowed);

Code

4292/// How many Branches is the player allowed to pick from right now?4293int CvPlayerPolicies::GetNumPolicyBranchesAllowed() const4294{4295	return /*2*/ GC.getNUM_POLICY_BRANCHES_ALLOWED() + GetNumExtraBranches();4296}

Calls

Called by