Bazaar developer reference

CvUnit::getAttackPlot() const

Defined in
CvUnit.cpp, line 17420
Class
CvUnit
Hook name
CivHooks::CvUnit_getAttackPlot

Hooks

static bool BeforeCvUnit_getAttackPlot(const CvUnit* self, CvPlot*& result);static void AfterCvUnit_getAttackPlot(const CvUnit* self, CvPlot*& result);static CvPlot* ReplaceCvUnit_getAttackPlot(CvPlot* (*original)(const CvUnit*), const CvUnit* self);CivRegisterBefore<CivHooks::CvUnit_getAttackPlot>(host, &BeforeCvUnit_getAttackPlot);CivRegisterAfter<CivHooks::CvUnit_getAttackPlot>(host, &AfterCvUnit_getAttackPlot);CivRegisterReplace<CivHooks::CvUnit_getAttackPlot>(host, &ReplaceCvUnit_getAttackPlot);

Code

17420CvPlot* CvUnit::getAttackPlot() const17421{17422	VALIDATE_OBJECT17423	return GC.getMap().plotCheckInvalid(m_iAttackPlotX, m_iAttackPlotY);17424}

Calls

Called by