Bazaar developer reference

CvFeatureInfo::getCoastalLandYieldChange(int) const

Defined in
CvInfos.cpp, line 5116
Class
CvFeatureInfo
Hook name
CivHooks::CvFeatureInfo_getCoastalLandYieldChange

Hooks

static bool BeforeCvFeatureInfo_getCoastalLandYieldChange(const CvFeatureInfo* self, int i, int& result);static void AfterCvFeatureInfo_getCoastalLandYieldChange(const CvFeatureInfo* self, int i, int& result);static int ReplaceCvFeatureInfo_getCoastalLandYieldChange(int (*original)(const CvFeatureInfo*, int), const CvFeatureInfo* self, int i);CivRegisterBefore<CivHooks::CvFeatureInfo_getCoastalLandYieldChange>(host, &BeforeCvFeatureInfo_getCoastalLandYieldChange);CivRegisterAfter<CivHooks::CvFeatureInfo_getCoastalLandYieldChange>(host, &AfterCvFeatureInfo_getCoastalLandYieldChange);CivRegisterReplace<CivHooks::CvFeatureInfo_getCoastalLandYieldChange>(host, &ReplaceCvFeatureInfo_getCoastalLandYieldChange);

Code

5116int CvFeatureInfo::getCoastalLandYieldChange(int i) const5117{5118	CvAssertMsg(i < NUM_YIELD_TYPES, "Index out of bounds");5119	CvAssertMsg(i > -1, "Index out of bounds");5120	return m_piCoastalLandYieldChange ? m_piCoastalLandYieldChange[i] : -1;5121}

Called by