Bazaar developer reference

CvUnit::changeNoRevealMapCount(int)

Defined in
CvUnit.cpp, line 14736
Class
CvUnit
Hook name
CivHooks::CvUnit_changeNoRevealMapCount

Hooks

static bool BeforeCvUnit_changeNoRevealMapCount(CvUnit* self, int iValue);static void AfterCvUnit_changeNoRevealMapCount(CvUnit* self, int iValue);static void ReplaceCvUnit_changeNoRevealMapCount(void (*original)(CvUnit*, int), CvUnit* self, int iValue);CivRegisterBefore<CivHooks::CvUnit_changeNoRevealMapCount>(host, &BeforeCvUnit_changeNoRevealMapCount);CivRegisterAfter<CivHooks::CvUnit_changeNoRevealMapCount>(host, &AfterCvUnit_changeNoRevealMapCount);CivRegisterReplace<CivHooks::CvUnit_changeNoRevealMapCount>(host, &ReplaceCvUnit_changeNoRevealMapCount);

Code

14736void CvUnit::changeNoRevealMapCount(int iValue)14737{14738	VALIDATE_OBJECT14739	m_iNoRevealMapCount += iValue;14740	CvAssert(getNoRevealMapCount() >= 0);14741}

Calls

Called by