Bazaar developer reference

CvGameReligions::GetNumReligionsStillToFound(bool) const

Defined in
CvReligionClasses.cpp, line 2070
Class
CvGameReligions
Hook name
CivHooks::CvGameReligions_GetNumReligionsStillToFound

Hooks

static bool BeforeCvGameReligions_GetNumReligionsStillToFound(const CvGameReligions* self, bool bIgnoreLocal, int& result);static void AfterCvGameReligions_GetNumReligionsStillToFound(const CvGameReligions* self, bool bIgnoreLocal, int& result);static int ReplaceCvGameReligions_GetNumReligionsStillToFound(int (*original)(const CvGameReligions*, bool), const CvGameReligions* self, bool bIgnoreLocal);CivRegisterBefore<CivHooks::CvGameReligions_GetNumReligionsStillToFound>(host, &BeforeCvGameReligions_GetNumReligionsStillToFound);CivRegisterAfter<CivHooks::CvGameReligions_GetNumReligionsStillToFound>(host, &AfterCvGameReligions_GetNumReligionsStillToFound);CivRegisterReplace<CivHooks::CvGameReligions_GetNumReligionsStillToFound>(host, &ReplaceCvGameReligions_GetNumReligionsStillToFound);

Code

2068/// Number of religions that still can be founded on this size map2069#if defined(MOD_RELIGION_LOCAL_RELIGIONS)2070int CvGameReligions::GetNumReligionsStillToFound(bool bIgnoreLocal) const2071#else2072int CvGameReligions::GetNumReligionsStillToFound() const2073#endif2074{2075#if defined(MOD_RELIGION_LOCAL_RELIGIONS)2076	return (GC.getMap().getWorldInfo().getMaxActiveReligions() - GetNumReligionsFounded(bIgnoreLocal));2077#else2078	return (GC.getMap().getWorldInfo().getMaxActiveReligions() - GetNumReligionsFounded());2079#endif2080}

Calls

Called by