Bazaar developer reference

CvGameReligions::GetBeliefInPantheon(PlayerTypes) const

Defined in
CvReligionClasses.cpp, line 1717
Class
CvGameReligions
Hook name
CivHooks::CvGameReligions_GetBeliefInPantheon

Hooks

static bool BeforeCvGameReligions_GetBeliefInPantheon(const CvGameReligions* self, PlayerTypes ePlayer, BeliefTypes& result);static void AfterCvGameReligions_GetBeliefInPantheon(const CvGameReligions* self, PlayerTypes ePlayer, BeliefTypes& result);static BeliefTypes ReplaceCvGameReligions_GetBeliefInPantheon(BeliefTypes (*original)(const CvGameReligions*, PlayerTypes), const CvGameReligions* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvGameReligions_GetBeliefInPantheon>(host, &BeforeCvGameReligions_GetBeliefInPantheon);CivRegisterAfter<CivHooks::CvGameReligions_GetBeliefInPantheon>(host, &AfterCvGameReligions_GetBeliefInPantheon);CivRegisterReplace<CivHooks::CvGameReligions_GetBeliefInPantheon>(host, &ReplaceCvGameReligions_GetBeliefInPantheon);

Code

1716/// Get the belief in this player's pantheon1717BeliefTypes CvGameReligions::GetBeliefInPantheon(PlayerTypes ePlayer) const1718{1719	ReligionList::const_iterator it;1720	for(it = m_CurrentReligions.begin(); it != m_CurrentReligions.end(); it++)1721	{1722		if(it->m_eFounder == ePlayer && it->m_bPantheon)1723		{1724			return (BeliefTypes)it->m_Beliefs.GetBelief(0);1725		}1726	}17271728	return NO_BELIEF;1729}

Calls

Called by