Bazaar developer reference

CvCity::getSeaPlotYield(YieldTypes) const

Defined in
CvCity.cpp, line 10297
Class
CvCity
Hook name
CivHooks::CvCity_getSeaPlotYield

Hooks

static bool BeforeCvCity_getSeaPlotYield(const CvCity* self, YieldTypes eIndex, int& result);static void AfterCvCity_getSeaPlotYield(const CvCity* self, YieldTypes eIndex, int& result);static int ReplaceCvCity_getSeaPlotYield(int (*original)(const CvCity*, YieldTypes), const CvCity* self, YieldTypes eIndex);CivRegisterBefore<CivHooks::CvCity_getSeaPlotYield>(host, &BeforeCvCity_getSeaPlotYield);CivRegisterAfter<CivHooks::CvCity_getSeaPlotYield>(host, &AfterCvCity_getSeaPlotYield);CivRegisterReplace<CivHooks::CvCity_getSeaPlotYield>(host, &ReplaceCvCity_getSeaPlotYield);

Code

10297int CvCity::getSeaPlotYield(YieldTypes eIndex) const10298{10299	VALIDATE_OBJECT10300	CvAssertMsg(eIndex >= 0, "eIndex expected to be >= 0");10301	CvAssertMsg(eIndex < NUM_YIELD_TYPES, "eIndex expected to be < NUM_YIELD_TYPES");10302	return m_aiSeaPlotYield[eIndex];10303}

Calls

Called by