Bazaar developer reference

CvPlayer::HasEnhancedReligion() const

Defined in
CvPlayer.cpp, line 28319
Class
CvPlayer
Hook name
CivHooks::CvPlayer_HasEnhancedReligion

Hooks

static bool BeforeCvPlayer_HasEnhancedReligion(const CvPlayer* self, bool& result);static void AfterCvPlayer_HasEnhancedReligion(const CvPlayer* self, bool& result);static bool ReplaceCvPlayer_HasEnhancedReligion(bool (*original)(const CvPlayer*), const CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_HasEnhancedReligion>(host, &BeforeCvPlayer_HasEnhancedReligion);CivRegisterAfter<CivHooks::CvPlayer_HasEnhancedReligion>(host, &AfterCvPlayer_HasEnhancedReligion);CivRegisterReplace<CivHooks::CvPlayer_HasEnhancedReligion>(host, &ReplaceCvPlayer_HasEnhancedReligion);

Code

28319bool CvPlayer::HasEnhancedReligion() const28320{28321	const ReligionTypes eReligion = GetReligions()->GetReligionCreatedByPlayer();28322	const CvReligion* pMyReligion = GC.getGame().GetGameReligions()->GetReligion(eReligion, GetID());2832328324	return (pMyReligion && pMyReligion->m_bEnhanced);28325}

Calls

Called by