Bazaar developer reference

CvPolicyEntry::GetImprovementCultureChanges(int) const

Defined in
CvPolicyClasses.cpp, line 2283
Class
CvPolicyEntry
Hook name
CivHooks::CvPolicyEntry_GetImprovementCultureChanges

Hooks

static bool BeforeCvPolicyEntry_GetImprovementCultureChanges(const CvPolicyEntry* self, int i, int& result);static void AfterCvPolicyEntry_GetImprovementCultureChanges(const CvPolicyEntry* self, int i, int& result);static int ReplaceCvPolicyEntry_GetImprovementCultureChanges(int (*original)(const CvPolicyEntry*, int), const CvPolicyEntry* self, int i);CivRegisterBefore<CivHooks::CvPolicyEntry_GetImprovementCultureChanges>(host, &BeforeCvPolicyEntry_GetImprovementCultureChanges);CivRegisterAfter<CivHooks::CvPolicyEntry_GetImprovementCultureChanges>(host, &AfterCvPolicyEntry_GetImprovementCultureChanges);CivRegisterReplace<CivHooks::CvPolicyEntry_GetImprovementCultureChanges>(host, &ReplaceCvPolicyEntry_GetImprovementCultureChanges);

Code

2282/// Culture modifier for a specific improvement2283int CvPolicyEntry::GetImprovementCultureChanges(int i) const2284{2285	CvAssertMsg(i < GC.getNumImprovementInfos(), "Index out of bounds");2286	CvAssertMsg(i > -1, "Index out of bounds");2287	return m_piImprovementCultureChange[i];2288}

Called by