Bazaar developer reference

CvDllPlayer::GetNumPolicyBranchesFinished() const

Defined in
CvDllPlayer.cpp, line 341
Class
CvDllPlayer
Hook name
CivHooks::CvDllPlayer_GetNumPolicyBranchesFinished

Hooks

static bool BeforeCvDllPlayer_GetNumPolicyBranchesFinished(const CvDllPlayer* self, int& result);static void AfterCvDllPlayer_GetNumPolicyBranchesFinished(const CvDllPlayer* self, int& result);static int ReplaceCvDllPlayer_GetNumPolicyBranchesFinished(int (*original)(const CvDllPlayer*), const CvDllPlayer* self);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetNumPolicyBranchesFinished::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPlayer_GetNumPolicyBranchesFinished);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetNumPolicyBranchesFinished::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPlayer_GetNumPolicyBranchesFinished);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetNumPolicyBranchesFinished::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPlayer_GetNumPolicyBranchesFinished);

Code

341int CvDllPlayer::GetNumPolicyBranchesFinished() const342{343	return m_pPlayer->GetPlayerPolicies()->GetNumPolicyBranchesFinished();344}

Calls