Bazaar developer reference

CvUnit::SetCapturedAsIs(bool)

Defined in
CvUnit.cpp, line 19722
Class
CvUnit
Hook name
CivHooks::CvUnit_SetCapturedAsIs

Hooks

static bool BeforeCvUnit_SetCapturedAsIs(CvUnit* self, bool bSetValue);static void AfterCvUnit_SetCapturedAsIs(CvUnit* self, bool bSetValue);static void ReplaceCvUnit_SetCapturedAsIs(void (*original)(CvUnit*, bool), CvUnit* self, bool bSetValue);CivRegisterBefore<CivHooks::CvUnit_SetCapturedAsIs>(host, &BeforeCvUnit_SetCapturedAsIs);CivRegisterAfter<CivHooks::CvUnit_SetCapturedAsIs>(host, &AfterCvUnit_SetCapturedAsIs);CivRegisterReplace<CivHooks::CvUnit_SetCapturedAsIs>(host, &ReplaceCvUnit_SetCapturedAsIs);

Code

19722void CvUnit::SetCapturedAsIs(bool bSetValue)19723{19724	VALIDATE_OBJECT19725	m_bCapturedAsIs = bSetValue;19726}

Called by