Bazaar developer reference

CvUnit::changeRangedSupportFireCount(int)

Defined in
CvUnit.cpp, line 11956
Class
CvUnit
Hook name
CivHooks::CvUnit_changeRangedSupportFireCount

Hooks

static bool BeforeCvUnit_changeRangedSupportFireCount(CvUnit* self, int iChange);static void AfterCvUnit_changeRangedSupportFireCount(CvUnit* self, int iChange);static void ReplaceCvUnit_changeRangedSupportFireCount(void (*original)(CvUnit*, int), CvUnit* self, int iChange);CivRegisterBefore<CivHooks::CvUnit_changeRangedSupportFireCount>(host, &BeforeCvUnit_changeRangedSupportFireCount);CivRegisterAfter<CivHooks::CvUnit_changeRangedSupportFireCount>(host, &AfterCvUnit_changeRangedSupportFireCount);CivRegisterReplace<CivHooks::CvUnit_changeRangedSupportFireCount>(host, &ReplaceCvUnit_changeRangedSupportFireCount);

Code

11956void CvUnit::changeRangedSupportFireCount(int iChange)11957{11958	VALIDATE_OBJECT11959	m_iRangedSupportFireCount = (m_iRangedSupportFireCount + iChange);11960	CvAssert(getRangedSupportFireCount() >= 0);11961}

Calls

Called by