CvPlayer::GetReligionAI() const
- Defined in
- CvPlayer.cpp, line 24547
- Class
- CvPlayer
- Hook name
CivHooks::CvPlayer_GetReligionAI
Hooks
static bool BeforeCvPlayer_GetReligionAI(const CvPlayer* self, CvReligionAI*& result);static void AfterCvPlayer_GetReligionAI(const CvPlayer* self, CvReligionAI*& result);static CvReligionAI* ReplaceCvPlayer_GetReligionAI(CvReligionAI* (*original)(const CvPlayer*), const CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_GetReligionAI>(host, &BeforeCvPlayer_GetReligionAI);CivRegisterAfter<CivHooks::CvPlayer_GetReligionAI>(host, &AfterCvPlayer_GetReligionAI);CivRegisterReplace<CivHooks::CvPlayer_GetReligionAI>(host, &ReplaceCvPlayer_GetReligionAI);
Code
24547CvReligionAI* CvPlayer::GetReligionAI() const24548{24549 return m_pReligionAI;24550}
Called by
- CvHomelandAI::ExecuteInquisitorMoves()
- CvHomelandAI::ExecuteMissionaryMoves()
- CvHomelandAI::ExecuteProphetMoves()
- CvPlayer::doTurnPostDiplomacy()
- CvPlayer::found(int, int, ReligionTypes)
- CvPlayerAI::GetDirectiveProphet(CvUnit *)
- CvGameReligions::DoPlayerTurn(CvPlayer &)
- CvReligionAI::HaveNearbyConversionTarget(ReligionTypes, bool) const
- CvUnit::DoEnhanceReligion()
- CvUnit::DoFoundReligion()