Bazaar developer reference

CvImprovementEntry::GetYieldChange(int) const

Defined in
CvImprovementClasses.cpp, line 981
Class
CvImprovementEntry
Hook name
CivHooks::CvImprovementEntry_GetYieldChange

Hooks

static bool BeforeCvImprovementEntry_GetYieldChange(const CvImprovementEntry* self, int i, int& result);static void AfterCvImprovementEntry_GetYieldChange(const CvImprovementEntry* self, int i, int& result);static int ReplaceCvImprovementEntry_GetYieldChange(int (*original)(const CvImprovementEntry*, int), const CvImprovementEntry* self, int i);CivRegisterBefore<CivHooks::CvImprovementEntry_GetYieldChange>(host, &BeforeCvImprovementEntry_GetYieldChange);CivRegisterAfter<CivHooks::CvImprovementEntry_GetYieldChange>(host, &AfterCvImprovementEntry_GetYieldChange);CivRegisterReplace<CivHooks::CvImprovementEntry_GetYieldChange>(host, &ReplaceCvImprovementEntry_GetYieldChange);

Code

980/// How much this improvement improves a certain yield981int CvImprovementEntry::GetYieldChange(int i) const982{983	CvAssertMsg(i < NUM_YIELD_TYPES, "Index out of bounds");984	CvAssertMsg(i > -1, "Index out of bounds");985	return m_piYieldChange ? m_piYieldChange[i] : 0;986}

Called by