Bazaar developer reference

CvTerrainInfo::GetTechYieldChanges(int, int) const

Defined in
CvInfos.cpp, line 5572
Class
CvTerrainInfo
Hook name
CivHooks::CvTerrainInfo_GetTechYieldChanges

Hooks

static bool BeforeCvTerrainInfo_GetTechYieldChanges(const CvTerrainInfo* self, int i, int j, int& result);static void AfterCvTerrainInfo_GetTechYieldChanges(const CvTerrainInfo* self, int i, int j, int& result);static int ReplaceCvTerrainInfo_GetTechYieldChanges(int (*original)(const CvTerrainInfo*, int, int), const CvTerrainInfo* self, int i, int j);CivRegisterBefore<CivHooks::CvTerrainInfo_GetTechYieldChanges>(host, &BeforeCvTerrainInfo_GetTechYieldChanges);CivRegisterAfter<CivHooks::CvTerrainInfo_GetTechYieldChanges>(host, &AfterCvTerrainInfo_GetTechYieldChanges);CivRegisterReplace<CivHooks::CvTerrainInfo_GetTechYieldChanges>(host, &ReplaceCvTerrainInfo_GetTechYieldChanges);

Code

5572int CvTerrainInfo::GetTechYieldChanges(int i, int j) const5573{5574	CvAssertMsg(i < GC.getNumTechInfos(), "Index out of bounds");5575	CvAssertMsg(i > -1, "Index out of bounds");5576	CvAssertMsg(j < NUM_YIELD_TYPES, "Index out of bounds");5577	CvAssertMsg(j > -1, "Index out of bounds");5578	return m_ppiTechYieldChanges[i][j];5579}

Called by