Bazaar developer reference

CvUnit::fightInterceptor(const CvPlot &)

Defined in
CvUnit.cpp, line 3531
Class
CvUnit
Hook name
CivHooks::CvUnit_fightInterceptor

Hooks

static bool BeforeCvUnit_fightInterceptor(CvUnit* self, const CvPlot& pPlot);static void AfterCvUnit_fightInterceptor(CvUnit* self, const CvPlot& pPlot);static void ReplaceCvUnit_fightInterceptor(void (*original)(CvUnit*, const CvPlot&), CvUnit* self, const CvPlot& pPlot);CivRegisterBefore<CivHooks::CvUnit_fightInterceptor>(host, &BeforeCvUnit_fightInterceptor);CivRegisterAfter<CivHooks::CvUnit_fightInterceptor>(host, &AfterCvUnit_fightInterceptor);CivRegisterReplace<CivHooks::CvUnit_fightInterceptor>(host, &ReplaceCvUnit_fightInterceptor);

Code

3531void CvUnit::fightInterceptor(const CvPlot& pPlot)3532{3533	VALIDATE_OBJECT3534	CvAssert(getCombatTimer() == 0);35353536	setAttackPlot(&pPlot, true);3537}

Calls