Bazaar developer reference

CvPlayer::SetEverConqueredBy(PlayerTypes, bool)

Defined in
CvPlayer.cpp, line 27720
Class
CvPlayer
Hook name
CivHooks::CvPlayer_SetEverConqueredBy

Hooks

static bool BeforeCvPlayer_SetEverConqueredBy(CvPlayer* self, PlayerTypes ePlayer, bool bValue);static void AfterCvPlayer_SetEverConqueredBy(CvPlayer* self, PlayerTypes ePlayer, bool bValue);static void ReplaceCvPlayer_SetEverConqueredBy(void (*original)(CvPlayer*, PlayerTypes, bool), CvPlayer* self, PlayerTypes ePlayer, bool bValue);CivRegisterBefore<CivHooks::CvPlayer_SetEverConqueredBy>(host, &BeforeCvPlayer_SetEverConqueredBy);CivRegisterAfter<CivHooks::CvPlayer_SetEverConqueredBy>(host, &AfterCvPlayer_SetEverConqueredBy);CivRegisterReplace<CivHooks::CvPlayer_SetEverConqueredBy>(host, &ReplaceCvPlayer_SetEverConqueredBy);

Code

27720void CvPlayer::SetEverConqueredBy(PlayerTypes ePlayer, bool bValue)27721{27722	if(bValue)27723	{27724		m_bfEverConqueredBy.SetBit(ePlayer);27725	}27726	else27727	{27728		m_bfEverConqueredBy.ClearBit(ePlayer);27729	}27730}

Calls

Called by