Bazaar developer reference

CvCity::getRallyPlot() const

Defined in
CvCity.cpp, line 7726
Class
CvCity
Hook name
CivHooks::CvCity_getRallyPlot

Hooks

static bool BeforeCvCity_getRallyPlot(const CvCity* self, CvPlot*& result);static void AfterCvCity_getRallyPlot(const CvCity* self, CvPlot*& result);static CvPlot* ReplaceCvCity_getRallyPlot(CvPlot* (*original)(const CvCity*), const CvCity* self);CivRegisterBefore<CivHooks::CvCity_getRallyPlot>(host, &BeforeCvCity_getRallyPlot);CivRegisterAfter<CivHooks::CvCity_getRallyPlot>(host, &AfterCvCity_getRallyPlot);CivRegisterReplace<CivHooks::CvCity_getRallyPlot>(host, &ReplaceCvCity_getRallyPlot);

Code

7726CvPlot* CvCity::getRallyPlot() const7727{7728	VALIDATE_OBJECT7729	if ((m_iRallyX != INVALID_PLOT_COORD) && (m_iRallyY != INVALID_PLOT_COORD))7730	{7731		return GC.getMap().plotUnchecked(m_iRallyX, m_iRallyY);7732	}7733	else7734		return NULL;7735}

Calls

Called by