Bazaar developer reference

CvFeatureInfo::GetTechYieldChanges(int, int) const

Defined in
CvInfos.cpp, line 5130
Class
CvFeatureInfo
Hook name
CivHooks::CvFeatureInfo_GetTechYieldChanges

Hooks

static bool BeforeCvFeatureInfo_GetTechYieldChanges(const CvFeatureInfo* self, int i, int j, int& result);static void AfterCvFeatureInfo_GetTechYieldChanges(const CvFeatureInfo* self, int i, int j, int& result);static int ReplaceCvFeatureInfo_GetTechYieldChanges(int (*original)(const CvFeatureInfo*, int, int), const CvFeatureInfo* self, int i, int j);CivRegisterBefore<CivHooks::CvFeatureInfo_GetTechYieldChanges>(host, &BeforeCvFeatureInfo_GetTechYieldChanges);CivRegisterAfter<CivHooks::CvFeatureInfo_GetTechYieldChanges>(host, &AfterCvFeatureInfo_GetTechYieldChanges);CivRegisterReplace<CivHooks::CvFeatureInfo_GetTechYieldChanges>(host, &ReplaceCvFeatureInfo_GetTechYieldChanges);

Code

5130int CvFeatureInfo::GetTechYieldChanges(int i, int j) const5131{5132	CvAssertMsg(i < GC.getNumTechInfos(), "Index out of bounds");5133	CvAssertMsg(i > -1, "Index out of bounds");5134	CvAssertMsg(j < NUM_YIELD_TYPES, "Index out of bounds");5135	CvAssertMsg(j > -1, "Index out of bounds");5136	return m_ppiTechYieldChanges[i][j];5137}

Called by