Bazaar developer reference

CvCity::getSpecialistProduction(SpecialistTypes) const

Defined in
CvCity.cpp, line 11428
Class
CvCity
Hook name
CivHooks::CvCity_getSpecialistProduction

Hooks

static bool BeforeCvCity_getSpecialistProduction(const CvCity* self, SpecialistTypes eIndex, int& result);static void AfterCvCity_getSpecialistProduction(const CvCity* self, SpecialistTypes eIndex, int& result);static int ReplaceCvCity_getSpecialistProduction(int (*original)(const CvCity*, SpecialistTypes), const CvCity* self, SpecialistTypes eIndex);CivRegisterBefore<CivHooks::CvCity_getSpecialistProduction>(host, &BeforeCvCity_getSpecialistProduction);CivRegisterAfter<CivHooks::CvCity_getSpecialistProduction>(host, &AfterCvCity_getSpecialistProduction);CivRegisterReplace<CivHooks::CvCity_getSpecialistProduction>(host, &ReplaceCvCity_getSpecialistProduction);

Code

11428int CvCity::getSpecialistProduction(SpecialistTypes eIndex) const11429{11430	VALIDATE_OBJECT11431	CvAssertMsg(eIndex >= 0, "eIndex expected to be >= 0");11432	CvAssertMsg(eIndex < GC.getNumSpecialistInfos(), "eIndex expected to be < GC.getNumSpecialistInfos()");11433	return m_paiSpecialistProduction[eIndex] / 100;11434}

Calls

Called by