Bazaar developer reference

CvUnit::ChangeRangeAttackIgnoreLOSCount(int)

Defined in
CvUnit.cpp, line 4703
Class
CvUnit
Hook name
CivHooks::CvUnit_ChangeRangeAttackIgnoreLOSCount

Hooks

static bool BeforeCvUnit_ChangeRangeAttackIgnoreLOSCount(CvUnit* self, int iChange);static void AfterCvUnit_ChangeRangeAttackIgnoreLOSCount(CvUnit* self, int iChange);static void ReplaceCvUnit_ChangeRangeAttackIgnoreLOSCount(void (*original)(CvUnit*, int), CvUnit* self, int iChange);CivRegisterBefore<CivHooks::CvUnit_ChangeRangeAttackIgnoreLOSCount>(host, &BeforeCvUnit_ChangeRangeAttackIgnoreLOSCount);CivRegisterAfter<CivHooks::CvUnit_ChangeRangeAttackIgnoreLOSCount>(host, &AfterCvUnit_ChangeRangeAttackIgnoreLOSCount);CivRegisterReplace<CivHooks::CvUnit_ChangeRangeAttackIgnoreLOSCount>(host, &ReplaceCvUnit_ChangeRangeAttackIgnoreLOSCount);

Code

4703void CvUnit::ChangeRangeAttackIgnoreLOSCount(int iChange)4704{4705	VALIDATE_OBJECT4706	if(iChange != 0)4707	{4708		m_iRangeAttackIgnoreLOSCount += iChange;4709	}4710}

Calls

Called by