Bazaar developer reference

CvPlot::GetPlotIndex() const

Defined in
CvPlot.cpp, line 11639
Class
CvPlot
Hook name
CivHooks::CvPlot_GetPlotIndex

Hooks

static bool BeforeCvPlot_GetPlotIndex(const CvPlot* self, int& result);static void AfterCvPlot_GetPlotIndex(const CvPlot* self, int& result);static int ReplaceCvPlot_GetPlotIndex(int (*original)(const CvPlot*), const CvPlot* self);CivRegisterBefore<CivHooks::CvPlot_GetPlotIndex>(host, &BeforeCvPlot_GetPlotIndex);CivRegisterAfter<CivHooks::CvPlot_GetPlotIndex>(host, &AfterCvPlot_GetPlotIndex);CivRegisterReplace<CivHooks::CvPlot_GetPlotIndex>(host, &ReplaceCvPlot_GetPlotIndex);

Code

11639int CvPlot::GetPlotIndex() const11640{11641	return GC.getMap().plotNum(getX(),getY());11642}

Calls

Called by

34 functions in 18 files