Bazaar developer reference

CvUnit::setCapturingPlayer(PlayerTypes)

Defined in
CvUnit.cpp, line 19708
Class
CvUnit
Hook name
CivHooks::CvUnit_setCapturingPlayer

Hooks

static bool BeforeCvUnit_setCapturingPlayer(CvUnit* self, PlayerTypes eNewValue);static void AfterCvUnit_setCapturingPlayer(CvUnit* self, PlayerTypes eNewValue);static void ReplaceCvUnit_setCapturingPlayer(void (*original)(CvUnit*, PlayerTypes), CvUnit* self, PlayerTypes eNewValue);CivRegisterBefore<CivHooks::CvUnit_setCapturingPlayer>(host, &BeforeCvUnit_setCapturingPlayer);CivRegisterAfter<CivHooks::CvUnit_setCapturingPlayer>(host, &AfterCvUnit_setCapturingPlayer);CivRegisterReplace<CivHooks::CvUnit_setCapturingPlayer>(host, &ReplaceCvUnit_setCapturingPlayer);

Code

19708void CvUnit::setCapturingPlayer(PlayerTypes eNewValue)19709{19710	VALIDATE_OBJECT19711	m_eCapturingPlayer = eNewValue;19712}

Calls

Called by