CvPlayerReligions::HasCreatedReligion(bool) const
- Defined in
- CvReligionClasses.cpp, line 3046
- Class
- CvPlayerReligions
- Hook name
CivHooks::CvPlayerReligions_HasCreatedReligion
Hooks
static bool BeforeCvPlayerReligions_HasCreatedReligion(const CvPlayerReligions* self, bool bIgnoreLocal, bool& result);static void AfterCvPlayerReligions_HasCreatedReligion(const CvPlayerReligions* self, bool bIgnoreLocal, bool& result);static bool ReplaceCvPlayerReligions_HasCreatedReligion(bool (*original)(const CvPlayerReligions*, bool), const CvPlayerReligions* self, bool bIgnoreLocal);CivRegisterBefore<CivHooks::CvPlayerReligions_HasCreatedReligion>(host, &BeforeCvPlayerReligions_HasCreatedReligion);CivRegisterAfter<CivHooks::CvPlayerReligions_HasCreatedReligion>(host, &AfterCvPlayerReligions_HasCreatedReligion);CivRegisterReplace<CivHooks::CvPlayerReligions_HasCreatedReligion>(host, &ReplaceCvPlayerReligions_HasCreatedReligion);
Code
3044/// Has this player created a religion?3045#if defined(MOD_RELIGION_LOCAL_RELIGIONS)3046bool CvPlayerReligions::HasCreatedReligion(bool bIgnoreLocal) const3047#else3048bool CvPlayerReligions::HasCreatedReligion() const3049#endif3050{3051#if defined(MOD_RELIGION_LOCAL_RELIGIONS)3052 return GC.getGame().GetGameReligions()->HasCreatedReligion(m_pPlayer->GetID(), bIgnoreLocal);3053#else3054 return GC.getGame().GetGameReligions()->HasCreatedReligion(m_pPlayer->GetID());3055#endif3056}
Calls
Called by
- CvCity::init(int, PlayerTypes, int, int, bool, bool, ReligionTypes, const char *)
- CvDllNetMessageHandler::ResponseFoundPantheon(PlayerTypes, BeliefTypes)
- CvPlayer::HasAnyReligion() const
- CvPlayer::addFreeUnit(UnitTypes, UnitAITypes)
- CvPlayer::canReceiveGoody(CvPlot *, GoodyTypes, CvUnit *) const
- CvPlayer::processPolicies(PolicyTypes, int)
- CvPlayerReligions::GetReligionCreatedByPlayer(bool) const
- CvPlayerReligions::HasOthersReligionInMostCities(PlayerTypes) const
- CvReligionAI::ScoreCityForMissionary(CvCity *, UnitHandle)
- CvLeague::GetChoicesForDecision(ResolutionDecisionTypes, PlayerTypes)
- CvLuaGame::lAddReformation(lua_State *)
- CvLuaPlayer::lHasCreatedReligion(lua_State *)