CvDiplomacyAI::GetNegativeReligiousConversionPoints(PlayerTypes) const
- Defined in
- CvDiplomacyAI.cpp, line 23187
- Class
- CvDiplomacyAI
- Hook name
CivHooks::CvDiplomacyAI_GetNegativeReligiousConversionPoints
Hooks
static bool BeforeCvDiplomacyAI_GetNegativeReligiousConversionPoints(const CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static void AfterCvDiplomacyAI_GetNegativeReligiousConversionPoints(const CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static int ReplaceCvDiplomacyAI_GetNegativeReligiousConversionPoints(int (*original)(const CvDiplomacyAI*, PlayerTypes), const CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetNegativeReligiousConversionPoints>(host, &BeforeCvDiplomacyAI_GetNegativeReligiousConversionPoints);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetNegativeReligiousConversionPoints>(host, &AfterCvDiplomacyAI_GetNegativeReligiousConversionPoints);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetNegativeReligiousConversionPoints>(host, &ReplaceCvDiplomacyAI_GetNegativeReligiousConversionPoints);
Code
23186/// Converted religion of my cities?23187int CvDiplomacyAI::GetNegativeReligiousConversionPoints(PlayerTypes ePlayer) const23188{23189 CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index. Please send Jon this with your last 5 autosaves and what changelist # you're playing.");23190 CvAssertMsg(ePlayer < MAX_MAJOR_CIVS, "DIPLOMACY_AI: Invalid Player Index. Please send Jon this with your last 5 autosaves and what changelist # you're playing.");2319123192 return m_paiNegativeReligiousConversionPoints[ePlayer];23193}
Called by
- CvDiplomacyAI::DoConvertedMyCityStatement(PlayerTypes, DiploStatementTypes &)
- CvDiplomacyAI::DoFromUIDiploEvent(PlayerTypes, FromUIDiploEventTypes, int, int)
- CvDiplomacyAI::GetReligiousConversionPointsScore(PlayerTypes)
- CvPlayer::DoLiberatePlayer(PlayerTypes, int)
- CvLuaPlayer::lGetNegativeReligiousConversionPoints(lua_State *)