Bazaar developer reference

CvCity::plot() const

Defined in
CvCity.cpp, line 7663
Class
CvCity
Hook name
CivHooks::CvCity_plot

Hooks

static bool BeforeCvCity_plot(const CvCity* self, CvPlot*& result);static void AfterCvCity_plot(const CvCity* self, CvPlot*& result);static CvPlot* ReplaceCvCity_plot(CvPlot* (*original)(const CvCity*), const CvCity* self);CivRegisterBefore<CivHooks::CvCity_plot>(host, &BeforeCvCity_plot);CivRegisterAfter<CivHooks::CvCity_plot>(host, &AfterCvCity_plot);CivRegisterReplace<CivHooks::CvCity_plot>(host, &ReplaceCvCity_plot);

Code

7663CvPlot* CvCity::plot() const 7664{ 7665	if ((m_iX != INVALID_PLOT_COORD) && (m_iY != INVALID_PLOT_COORD))7666		return GC.getMap().plotUnchecked(m_iX, m_iY); 7667	return NULL;7668}

Calls

Called by

160 functions in 29 files