Bazaar developer reference

CvPlayer::HasPolicyBranch(PolicyBranchTypes) const

Defined in
CvPlayer.cpp, line 28223
Class
CvPlayer
Hook name
CivHooks::CvPlayer_HasPolicyBranch

Hooks

static bool BeforeCvPlayer_HasPolicyBranch(const CvPlayer* self, PolicyBranchTypes iPolicyBranchType, bool& result);static void AfterCvPlayer_HasPolicyBranch(const CvPlayer* self, PolicyBranchTypes iPolicyBranchType, bool& result);static bool ReplaceCvPlayer_HasPolicyBranch(bool (*original)(const CvPlayer*, PolicyBranchTypes), const CvPlayer* self, PolicyBranchTypes iPolicyBranchType);CivRegisterBefore<CivHooks::CvPlayer_HasPolicyBranch>(host, &BeforeCvPlayer_HasPolicyBranch);CivRegisterAfter<CivHooks::CvPlayer_HasPolicyBranch>(host, &AfterCvPlayer_HasPolicyBranch);CivRegisterReplace<CivHooks::CvPlayer_HasPolicyBranch>(host, &ReplaceCvPlayer_HasPolicyBranch);

Code

28223bool CvPlayer::HasPolicyBranch(PolicyBranchTypes iPolicyBranchType) const28224{28225	return GetPlayerPolicies()->IsPolicyBranchUnlocked(iPolicyBranchType);28226}

Calls

Called by