Bazaar developer reference

CvCityCitizens::GetCityPlotFromIndex(int) const

Defined in
CvCityCitizens.cpp, line 2155
Class
CvCityCitizens
Hook name
CivHooks::CvCityCitizens_GetCityPlotFromIndex

Hooks

static bool BeforeCvCityCitizens_GetCityPlotFromIndex(const CvCityCitizens* self, int iIndex, CvPlot*& result);static void AfterCvCityCitizens_GetCityPlotFromIndex(const CvCityCitizens* self, int iIndex, CvPlot*& result);static CvPlot* ReplaceCvCityCitizens_GetCityPlotFromIndex(CvPlot* (*original)(const CvCityCitizens*, int), const CvCityCitizens* self, int iIndex);CivRegisterBefore<CivHooks::CvCityCitizens_GetCityPlotFromIndex>(host, &BeforeCvCityCitizens_GetCityPlotFromIndex);CivRegisterAfter<CivHooks::CvCityCitizens_GetCityPlotFromIndex>(host, &AfterCvCityCitizens_GetCityPlotFromIndex);CivRegisterReplace<CivHooks::CvCityCitizens_GetCityPlotFromIndex>(host, &ReplaceCvCityCitizens_GetCityPlotFromIndex);

Code

2154/// Returns the CvPlot from a Plot Index2155CvPlot* CvCityCitizens::GetCityPlotFromIndex(int iIndex) const2156{2157	return plotCity(m_pCity->getX(), m_pCity->getY(), iIndex);2158}

Calls

Called by