Bazaar developer reference

CvPlotInfo::getYield(int) const

Defined in
CvPlotInfo.cpp, line 31
Class
CvPlotInfo
Hook name
CivHooks::CvPlotInfo_getYield

Hooks

static bool BeforeCvPlotInfo_getYield(const CvPlotInfo* self, int i, int& result);static void AfterCvPlotInfo_getYield(const CvPlotInfo* self, int i, int& result);static int ReplaceCvPlotInfo_getYield(int (*original)(const CvPlotInfo*, int), const CvPlotInfo* self, int i);CivRegisterBefore<CivHooks::CvPlotInfo_getYield>(host, &BeforeCvPlotInfo_getYield);CivRegisterAfter<CivHooks::CvPlotInfo_getYield>(host, &AfterCvPlotInfo_getYield);CivRegisterReplace<CivHooks::CvPlotInfo_getYield>(host, &ReplaceCvPlotInfo_getYield);

Code

31int CvPlotInfo::getYield(int i) const32{33	CvAssertMsg(i < NUM_YIELD_TYPES, "Index out of bounds");34	CvAssertMsg(i > -1, "Index out of bounds");35	return m_piYields ? m_piYields[i] : -1;36}

Called by