CvPolicyEntry::GetLevel() const
- Defined in
- CvPolicyClasses.cpp, line 952
- Class
- CvPolicyEntry
- Hook name
CivHooks::CvPolicyEntry_GetLevel
Hooks
static bool BeforeCvPolicyEntry_GetLevel(const CvPolicyEntry* self, int& result);static void AfterCvPolicyEntry_GetLevel(const CvPolicyEntry* self, int& result);static int ReplaceCvPolicyEntry_GetLevel(int (*original)(const CvPolicyEntry*), const CvPolicyEntry* self);CivRegisterBefore<CivHooks::CvPolicyEntry_GetLevel>(host, &BeforeCvPolicyEntry_GetLevel);CivRegisterAfter<CivHooks::CvPolicyEntry_GetLevel>(host, &AfterCvPolicyEntry_GetLevel);CivRegisterReplace<CivHooks::CvPolicyEntry_GetLevel>(host, &ReplaceCvPolicyEntry_GetLevel);
Code
951/// If this policy's branch unlocks by level, what is the level for this policy?952int CvPolicyEntry::GetLevel() const953{954 return m_iLevel;955}
Called by
- CvPlayer::doAdoptPolicy(PolicyTypes)
- CvPolicyAI::ChooseNextPolicy(CvPlayer *)
- CvPlayerPolicies::CanAdoptPolicy(PolicyTypes, bool) const
- CvPlayerPolicies::CanGetAdvancedTenet() const
- CvPlayerPolicies::GetAvailableTenets(PolicyBranchTypes, int)
- CvPlayerPolicies::GetNumTenetsOfLevel(PolicyBranchTypes, int) const
- CvPlayerPolicies::GetTenet(PolicyBranchTypes, int, int)