Bazaar developer reference

CvPlot::getNearestLandArea() const

Defined in
CvPlot.cpp, line 1402
Class
CvPlot
Hook name
CivHooks::CvPlot_getNearestLandArea

Hooks

static bool BeforeCvPlot_getNearestLandArea(const CvPlot* self, int& result);static void AfterCvPlot_getNearestLandArea(const CvPlot* self, int& result);static int ReplaceCvPlot_getNearestLandArea(int (*original)(const CvPlot*), const CvPlot* self);CivRegisterBefore<CivHooks::CvPlot_getNearestLandArea>(host, &BeforeCvPlot_getNearestLandArea);CivRegisterAfter<CivHooks::CvPlot_getNearestLandArea>(host, &AfterCvPlot_getNearestLandArea);CivRegisterReplace<CivHooks::CvPlot_getNearestLandArea>(host, &ReplaceCvPlot_getNearestLandArea);

Code

1402int CvPlot::getNearestLandArea() const1403{1404	CvPlot* pPlot = getNearestLandPlot();1405	return pPlot ? pPlot->getArea() : -1;1406}

Calls

Called by