Bazaar developer reference

CvCity::GetYieldPerPopTimes100(YieldTypes) const

Defined in
CvCity.cpp, line 10888
Class
CvCity
Hook name
CivHooks::CvCity_GetYieldPerPopTimes100

Hooks

static bool BeforeCvCity_GetYieldPerPopTimes100(const CvCity* self, YieldTypes eIndex, int& result);static void AfterCvCity_GetYieldPerPopTimes100(const CvCity* self, YieldTypes eIndex, int& result);static int ReplaceCvCity_GetYieldPerPopTimes100(int (*original)(const CvCity*, YieldTypes), const CvCity* self, YieldTypes eIndex);CivRegisterBefore<CivHooks::CvCity_GetYieldPerPopTimes100>(host, &BeforeCvCity_GetYieldPerPopTimes100);CivRegisterAfter<CivHooks::CvCity_GetYieldPerPopTimes100>(host, &AfterCvCity_GetYieldPerPopTimes100);CivRegisterReplace<CivHooks::CvCity_GetYieldPerPopTimes100>(host, &ReplaceCvCity_GetYieldPerPopTimes100);

Code

10887/// Extra yield for each pop point10888int CvCity::GetYieldPerPopTimes100(YieldTypes eIndex) const10889{10890	VALIDATE_OBJECT10891	CvAssertMsg(eIndex >= 0, "eIndex expected to be >= 0");10892	CvAssertMsg(eIndex < NUM_YIELD_TYPES, "eIndex expected to be < NUM_YIELD_TYPES");1089310894	return m_aiYieldPerPop[eIndex];10895}

Calls

Called by