CvPlayerReligions::GetReligionCreatedByPlayer(bool) const
- Defined in
- CvReligionClasses.cpp, line 3065
- Class
- CvPlayerReligions
- Hook name
CivHooks::CvPlayerReligions_GetReligionCreatedByPlayer
Hooks
static bool BeforeCvPlayerReligions_GetReligionCreatedByPlayer(const CvPlayerReligions* self, bool bIncludePantheon, ReligionTypes& result);static void AfterCvPlayerReligions_GetReligionCreatedByPlayer(const CvPlayerReligions* self, bool bIncludePantheon, ReligionTypes& result);static ReligionTypes ReplaceCvPlayerReligions_GetReligionCreatedByPlayer(ReligionTypes (*original)(const CvPlayerReligions*, bool), const CvPlayerReligions* self, bool bIncludePantheon);CivRegisterBefore<CivHooks::CvPlayerReligions_GetReligionCreatedByPlayer>(host, &BeforeCvPlayerReligions_GetReligionCreatedByPlayer);CivRegisterAfter<CivHooks::CvPlayerReligions_GetReligionCreatedByPlayer>(host, &AfterCvPlayerReligions_GetReligionCreatedByPlayer);CivRegisterReplace<CivHooks::CvPlayerReligions_GetReligionCreatedByPlayer>(host, &ReplaceCvPlayerReligions_GetReligionCreatedByPlayer);
Code
3064/// Get the religion this player created3065ReligionTypes CvPlayerReligions::GetReligionCreatedByPlayer(bool bIncludePantheon) const3066{3067#if defined(MOD_API_EXTENSIONS)3068 if (bIncludePantheon) {3069 if (!HasCreatedReligion() && HasCreatedPantheon()) {3070 return RELIGION_PANTHEON;3071 }3072 }3073#endif30743075 return GC.getGame().GetGameReligions()->GetReligionCreatedByPlayer(m_pPlayer->GetID());3076}
Calls
Called by
- CvCity::GetFaithPurchaseCost(UnitTypes, bool)
- CvCity::Purchase(UnitTypes, BuildingTypes, ProjectTypes, YieldTypes)
- CvCity::init(int, PlayerTypes, int, int, bool, bool, ReligionTypes, const char *)
- CvCityCitizens::DoSpawnGreatPerson(UnitTypes, bool, bool, bool)
- CvDllNetMessageHandler::ResponseFoundPantheon(PlayerTypes, BeliefTypes)
- CvPlayer::DoAnnounceReligionAdoption()
- CvPlayer::DoGreatPersonExpended(UnitTypes, CvUnit *)
- CvPlayer::DoYieldBonusFromKill(YieldTypes, CvUnit *, CvUnit *, UnitTypes, int, int, bool, int &)
- CvPlayer::GetScoreFromReligion() const
- CvPlayer::HasBelief(BeliefTypes) const
- CvPlayer::HasEnhancedReligion() const
- CvPlayer::HasReligion(ReligionTypes) const
- CvPlayer::processPolicies(PolicyTypes, int)
- CvPlayerAI::GetDirectiveProphet(CvUnit *)
- CvCityReligions::CityConvertsReligion(ReligionTypes, ReligionTypes, PlayerTypes)
- CvCityReligions::GetPressurePerTurn(ReligionTypes, int &)
- CvGameReligions::SpreadReligionToOneCity(CvCity *)
- CvPlayerReligions::GetCityStateInfluenceModifier() const
- CvPlayerReligions::GetCostNextProphet(bool, bool, bool) const
- CvPlayerReligions::GetSpyPressure() const
- CvReligionAI::ChooseProphetConversionCity(bool) const
- CvReligionAI::ScoreCityForMissionary(CvCity *, UnitHandle)
- CvUnit::setXY(int, int, bool, bool, bool, bool, bool)
- CvLeague::GetChoicesForDecision(ResolutionDecisionTypes, PlayerTypes)
- CvLeagueAI::ScoreVoteChoiceYesNo(CvProposal *, int, bool)
- CvLuaGame::lAddReformation(lua_State *)
- CvLuaPlayer::lGetReligionCreatedByPlayer(lua_State *)