Bazaar developer reference

CvPlayer::SetAlliesGreatPersonBiasApplied(bool)

Defined in
CvPlayer.cpp, line 27158
Class
CvPlayer
Hook name
CivHooks::CvPlayer_SetAlliesGreatPersonBiasApplied

Hooks

static bool BeforeCvPlayer_SetAlliesGreatPersonBiasApplied(CvPlayer* self, bool bValue);static void AfterCvPlayer_SetAlliesGreatPersonBiasApplied(CvPlayer* self, bool bValue);static void ReplaceCvPlayer_SetAlliesGreatPersonBiasApplied(void (*original)(CvPlayer*, bool), CvPlayer* self, bool bValue);CivRegisterBefore<CivHooks::CvPlayer_SetAlliesGreatPersonBiasApplied>(host, &BeforeCvPlayer_SetAlliesGreatPersonBiasApplied);CivRegisterAfter<CivHooks::CvPlayer_SetAlliesGreatPersonBiasApplied>(host, &AfterCvPlayer_SetAlliesGreatPersonBiasApplied);CivRegisterReplace<CivHooks::CvPlayer_SetAlliesGreatPersonBiasApplied>(host, &ReplaceCvPlayer_SetAlliesGreatPersonBiasApplied);

Code

27157/// Special ability where city-states gift great people27158void CvPlayer::SetAlliesGreatPersonBiasApplied(bool bValue)27159{27160	if(m_bAlliesGreatPersonBiasApplied != bValue)27161	{27162		m_bAlliesGreatPersonBiasApplied = bValue;27163	}27164}

Calls

Called by