Bazaar developer reference

CvPlot::getExtraMovePathCost() const

Defined in
CvPlot.cpp, line 3156
Class
CvPlot
Hook name
CivHooks::CvPlot_getExtraMovePathCost

Hooks

static bool BeforeCvPlot_getExtraMovePathCost(const CvPlot* self, int& result);static void AfterCvPlot_getExtraMovePathCost(const CvPlot* self, int& result);static int ReplaceCvPlot_getExtraMovePathCost(int (*original)(const CvPlot*), const CvPlot* self);CivRegisterBefore<CivHooks::CvPlot_getExtraMovePathCost>(host, &BeforeCvPlot_getExtraMovePathCost);CivRegisterAfter<CivHooks::CvPlot_getExtraMovePathCost>(host, &AfterCvPlot_getExtraMovePathCost);CivRegisterReplace<CivHooks::CvPlot_getExtraMovePathCost>(host, &ReplaceCvPlot_getExtraMovePathCost);

Code

3156int CvPlot::getExtraMovePathCost() const3157{3158	return GC.getGame().getPlotExtraCost(getX(), getY());3159}

Calls

Called by