Bazaar developer reference

CvUnit::ChangeAirSweepCapableCount(int)

Defined in
CvUnit.cpp, line 21978
Class
CvUnit
Hook name
CivHooks::CvUnit_ChangeAirSweepCapableCount

Hooks

static bool BeforeCvUnit_ChangeAirSweepCapableCount(CvUnit* self, int iChange);static void AfterCvUnit_ChangeAirSweepCapableCount(CvUnit* self, int iChange);static void ReplaceCvUnit_ChangeAirSweepCapableCount(void (*original)(CvUnit*, int), CvUnit* self, int iChange);CivRegisterBefore<CivHooks::CvUnit_ChangeAirSweepCapableCount>(host, &BeforeCvUnit_ChangeAirSweepCapableCount);CivRegisterAfter<CivHooks::CvUnit_ChangeAirSweepCapableCount>(host, &AfterCvUnit_ChangeAirSweepCapableCount);CivRegisterReplace<CivHooks::CvUnit_ChangeAirSweepCapableCount>(host, &ReplaceCvUnit_ChangeAirSweepCapableCount);

Code

21977/// Can this Unit air sweep to eliminate interceptors?21978void CvUnit::ChangeAirSweepCapableCount(int iChange)21979{21980	if(iChange != 0)21981	{21982		m_iAirSweepCapableCount += iChange;21983	}21984}

Calls

Called by