Bazaar developer reference

CvPolicyEntry::GetYieldChangeWorldWonder(int) const

Defined in
CvPolicyClasses.cpp, line 2225
Class
CvPolicyEntry
Hook name
CivHooks::CvPolicyEntry_GetYieldChangeWorldWonder

Hooks

static bool BeforeCvPolicyEntry_GetYieldChangeWorldWonder(const CvPolicyEntry* self, int i, int& result);static void AfterCvPolicyEntry_GetYieldChangeWorldWonder(const CvPolicyEntry* self, int i, int& result);static int ReplaceCvPolicyEntry_GetYieldChangeWorldWonder(int (*original)(const CvPolicyEntry*, int), const CvPolicyEntry* self, int i);CivRegisterBefore<CivHooks::CvPolicyEntry_GetYieldChangeWorldWonder>(host, &BeforeCvPolicyEntry_GetYieldChangeWorldWonder);CivRegisterAfter<CivHooks::CvPolicyEntry_GetYieldChangeWorldWonder>(host, &AfterCvPolicyEntry_GetYieldChangeWorldWonder);CivRegisterReplace<CivHooks::CvPolicyEntry_GetYieldChangeWorldWonder>(host, &ReplaceCvPolicyEntry_GetYieldChangeWorldWonder);

Code

2225int CvPolicyEntry::GetYieldChangeWorldWonder(int i) const2226{2227	CvAssertMsg(i < NUM_YIELD_TYPES, "Index out of bounds");2228	CvAssertMsg(i > -1, "Index out of bounds");2229	return m_piYieldChangeWorldWonder ? m_piYieldChangeWorldWonder[i] : 0;2230}

Called by