Bazaar developer reference

CvCityCitizens::GetCityIndexFromPlot(const CvPlot *) const

Defined in
CvCityCitizens.cpp, line 2148
Class
CvCityCitizens
Hook name
CivHooks::CvCityCitizens_GetCityIndexFromPlot

Hooks

static bool BeforeCvCityCitizens_GetCityIndexFromPlot(const CvCityCitizens* self, const CvPlot* pPlot, int& result);static void AfterCvCityCitizens_GetCityIndexFromPlot(const CvCityCitizens* self, const CvPlot* pPlot, int& result);static int ReplaceCvCityCitizens_GetCityIndexFromPlot(int (*original)(const CvCityCitizens*, const CvPlot*), const CvCityCitizens* self, const CvPlot* pPlot);CivRegisterBefore<CivHooks::CvCityCitizens_GetCityIndexFromPlot>(host, &BeforeCvCityCitizens_GetCityIndexFromPlot);CivRegisterAfter<CivHooks::CvCityCitizens_GetCityIndexFromPlot>(host, &AfterCvCityCitizens_GetCityIndexFromPlot);CivRegisterReplace<CivHooks::CvCityCitizens_GetCityIndexFromPlot>(host, &ReplaceCvCityCitizens_GetCityIndexFromPlot);

Code

2147/// Returns the Plot Index from a CvPlot2148int CvCityCitizens::GetCityIndexFromPlot(const CvPlot* pPlot) const2149{2150	return plotCityXY(m_pCity, pPlot);2151}

Calls

Called by