Bazaar developer reference

CvCity::getRiverPlotYield(YieldTypes) const

Defined in
CvCity.cpp, line 10323
Class
CvCity
Hook name
CivHooks::CvCity_getRiverPlotYield

Hooks

static bool BeforeCvCity_getRiverPlotYield(const CvCity* self, YieldTypes eIndex, int& result);static void AfterCvCity_getRiverPlotYield(const CvCity* self, YieldTypes eIndex, int& result);static int ReplaceCvCity_getRiverPlotYield(int (*original)(const CvCity*, YieldTypes), const CvCity* self, YieldTypes eIndex);CivRegisterBefore<CivHooks::CvCity_getRiverPlotYield>(host, &BeforeCvCity_getRiverPlotYield);CivRegisterAfter<CivHooks::CvCity_getRiverPlotYield>(host, &AfterCvCity_getRiverPlotYield);CivRegisterReplace<CivHooks::CvCity_getRiverPlotYield>(host, &ReplaceCvCity_getRiverPlotYield);

Code

10323int CvCity::getRiverPlotYield(YieldTypes eIndex) const10324{10325	VALIDATE_OBJECT10326	CvAssertMsg(eIndex >= 0, "eIndex expected to be >= 0");10327	CvAssertMsg(eIndex < NUM_YIELD_TYPES, "eIndex expected to be < NUM_YIELD_TYPES");10328	return m_aiRiverPlotYield[eIndex];10329}

Calls

Called by