Bazaar developer reference

CvUnit::atPlot(const CvPlot &) const

Defined in
CvUnit.cpp, line 16451
Class
CvUnit
Hook name
CivHooks::CvUnit_atPlot

Hooks

static bool BeforeCvUnit_atPlot(const CvUnit* self, const CvPlot& checkPlot, bool& result);static void AfterCvUnit_atPlot(const CvUnit* self, const CvPlot& checkPlot, bool& result);static bool ReplaceCvUnit_atPlot(bool (*original)(const CvUnit*, const CvPlot&), const CvUnit* self, const CvPlot& checkPlot);CivRegisterBefore<CivHooks::CvUnit_atPlot>(host, &BeforeCvUnit_atPlot);CivRegisterAfter<CivHooks::CvUnit_atPlot>(host, &AfterCvUnit_atPlot);CivRegisterReplace<CivHooks::CvUnit_atPlot>(host, &ReplaceCvUnit_atPlot);

Code

16451bool CvUnit::atPlot(const CvPlot& checkPlot) const16452{16453	VALIDATE_OBJECT16454	return((getX() == checkPlot.getX()) && (getY() == checkPlot.getY()));16455}

Calls

Called by