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
- EconomicAIHelpers::IsTestStrategy_DevelopingReligion(CvPlayer *)
- CvNotifications::IsNotificationExpired(int)
- CvPlayerAI::CanFoundOrEnhanceReligion()
- CvPlayerAI::GetDirectiveProphet(CvUnit *)
- CvGameReligions::CanFoundReligion(PlayerTypes, ReligionTypes, const char *, BeliefTypes, BeliefTypes, BeliefTypes, BeliefTypes, CvCity *)
- CvGameReligions::CheckSpawnGreatProphet(CvPlayer &)
- CvGameReligions::DoPlayerTurn(CvPlayer &)
- CvReligionAI::DoFaithPurchases()
- CvPlayerTraits::ChooseMayaBoost()
- CvUnit::CanFoundReligion(const CvPlot *) const
- CvLuaGame::lGetNumReligionsStillToFound(lua_State *)