Bazaar developer reference

CvPolicyEntry::GetGreatWorkYieldChange(int) const

Defined in
CvPolicyClasses.cpp, line 1922
Class
CvPolicyEntry
Hook name
CivHooks::CvPolicyEntry_GetGreatWorkYieldChange

Hooks

static bool BeforeCvPolicyEntry_GetGreatWorkYieldChange(const CvPolicyEntry* self, int i, int& result);static void AfterCvPolicyEntry_GetGreatWorkYieldChange(const CvPolicyEntry* self, int i, int& result);static int ReplaceCvPolicyEntry_GetGreatWorkYieldChange(int (*original)(const CvPolicyEntry*, int), const CvPolicyEntry* self, int i);CivRegisterBefore<CivHooks::CvPolicyEntry_GetGreatWorkYieldChange>(host, &BeforeCvPolicyEntry_GetGreatWorkYieldChange);CivRegisterAfter<CivHooks::CvPolicyEntry_GetGreatWorkYieldChange>(host, &AfterCvPolicyEntry_GetGreatWorkYieldChange);CivRegisterReplace<CivHooks::CvPolicyEntry_GetGreatWorkYieldChange>(host, &ReplaceCvPolicyEntry_GetGreatWorkYieldChange);

Code

1921/// Change to Great Work yield by type1922int CvPolicyEntry::GetGreatWorkYieldChange(int i) const1923{1924	CvAssertMsg(i < NUM_YIELD_TYPES, "Index out of bounds");1925	CvAssertMsg(i > -1, "Index out of bounds");1926	return m_piGreatWorkYieldChange ? m_piGreatWorkYieldChange[i] : -1;1927}

Called by