Bazaar developer reference

CvCity::getLakePlotYield(YieldTypes) const

Defined in
CvCity.cpp, line 10348
Class
CvCity
Hook name
CivHooks::CvCity_getLakePlotYield

Hooks

static bool BeforeCvCity_getLakePlotYield(const CvCity* self, YieldTypes eIndex, int& result);static void AfterCvCity_getLakePlotYield(const CvCity* self, YieldTypes eIndex, int& result);static int ReplaceCvCity_getLakePlotYield(int (*original)(const CvCity*, YieldTypes), const CvCity* self, YieldTypes eIndex);CivRegisterBefore<CivHooks::CvCity_getLakePlotYield>(host, &BeforeCvCity_getLakePlotYield);CivRegisterAfter<CivHooks::CvCity_getLakePlotYield>(host, &AfterCvCity_getLakePlotYield);CivRegisterReplace<CivHooks::CvCity_getLakePlotYield>(host, &ReplaceCvCity_getLakePlotYield);

Code

10348int CvCity::getLakePlotYield(YieldTypes eIndex) const10349{10350	VALIDATE_OBJECT10351	CvAssertMsg(eIndex >= 0, "eIndex expected to be >= 0");10352	CvAssertMsg(eIndex < NUM_YIELD_TYPES, "eIndex expected to be < NUM_YIELD_TYPES");10353	return m_aiLakePlotYield[eIndex];10354}

Calls

Called by