Bazaar developer reference

CvBuildingEntry::GetFeatureYieldChange(int, int) const

Defined in
CvBuildingClasses.cpp, line 2029
Class
CvBuildingEntry
Hook name
CivHooks::CvBuildingEntry_GetFeatureYieldChange

Hooks

static bool BeforeCvBuildingEntry_GetFeatureYieldChange(const CvBuildingEntry* self, int i, int j, int& result);static void AfterCvBuildingEntry_GetFeatureYieldChange(const CvBuildingEntry* self, int i, int j, int& result);static int ReplaceCvBuildingEntry_GetFeatureYieldChange(int (*original)(const CvBuildingEntry*, int, int), const CvBuildingEntry* self, int i, int j);CivRegisterBefore<CivHooks::CvBuildingEntry_GetFeatureYieldChange>(host, &BeforeCvBuildingEntry_GetFeatureYieldChange);CivRegisterAfter<CivHooks::CvBuildingEntry_GetFeatureYieldChange>(host, &AfterCvBuildingEntry_GetFeatureYieldChange);CivRegisterReplace<CivHooks::CvBuildingEntry_GetFeatureYieldChange>(host, &ReplaceCvBuildingEntry_GetFeatureYieldChange);

Code

2028/// Change to Feature yield by type2029int CvBuildingEntry::GetFeatureYieldChange(int i, int j) const2030{2031	CvAssertMsg(i < GC.getNumFeatureInfos(), "Index out of bounds");2032	CvAssertMsg(i > -1, "Index out of bounds");2033	CvAssertMsg(j < NUM_YIELD_TYPES, "Index out of bounds");2034	CvAssertMsg(j > -1, "Index out of bounds");2035	return m_ppaiFeatureYieldChange ? m_ppaiFeatureYieldChange[i][j] : -1;2036}

Called by