Bazaar developer reference

CvGameReligions::HasCreatedPantheon(PlayerTypes) const

Defined in
CvReligionClasses.cpp, line 1732
Class
CvGameReligions
Hook name
CivHooks::CvGameReligions_HasCreatedPantheon

Hooks

static bool BeforeCvGameReligions_HasCreatedPantheon(const CvGameReligions* self, PlayerTypes ePlayer, bool& result);static void AfterCvGameReligions_HasCreatedPantheon(const CvGameReligions* self, PlayerTypes ePlayer, bool& result);static bool ReplaceCvGameReligions_HasCreatedPantheon(bool (*original)(const CvGameReligions*, PlayerTypes), const CvGameReligions* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvGameReligions_HasCreatedPantheon>(host, &BeforeCvGameReligions_HasCreatedPantheon);CivRegisterAfter<CivHooks::CvGameReligions_HasCreatedPantheon>(host, &AfterCvGameReligions_HasCreatedPantheon);CivRegisterReplace<CivHooks::CvGameReligions_HasCreatedPantheon>(host, &ReplaceCvGameReligions_HasCreatedPantheon);

Code

1731/// Has this player created a pantheon?1732bool CvGameReligions::HasCreatedPantheon(PlayerTypes ePlayer) const1733{1734	ReligionList::const_iterator it;1735	for(it = m_CurrentReligions.begin(); it != m_CurrentReligions.end(); it++)1736	{1737		if(it->m_eFounder == ePlayer && it->m_bPantheon)1738		{1739			return true;1740		}1741	}17421743	return false;1744}

Calls

Called by