CvDiplomacyAI::GetOtherPlayerNumMajorsConquered(PlayerTypes) const
- Defined in
- CvDiplomacyAI.cpp, line 10263
- Class
- CvDiplomacyAI
- Hook name
CivHooks::CvDiplomacyAI_GetOtherPlayerNumMajorsConquered
Hooks
static bool BeforeCvDiplomacyAI_GetOtherPlayerNumMajorsConquered(const CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static void AfterCvDiplomacyAI_GetOtherPlayerNumMajorsConquered(const CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static int ReplaceCvDiplomacyAI_GetOtherPlayerNumMajorsConquered(int (*original)(const CvDiplomacyAI*, PlayerTypes), const CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetOtherPlayerNumMajorsConquered>(host, &BeforeCvDiplomacyAI_GetOtherPlayerNumMajorsConquered);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetOtherPlayerNumMajorsConquered>(host, &AfterCvDiplomacyAI_GetOtherPlayerNumMajorsConquered);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetOtherPlayerNumMajorsConquered>(host, &ReplaceCvDiplomacyAI_GetOtherPlayerNumMajorsConquered);
Code
10262/// How many Majors have we seen this Player conquer10263int CvDiplomacyAI::GetOtherPlayerNumMajorsConquered(PlayerTypes ePlayer) const10264{10265 CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index. Please send Jon this with your last 5 autosaves and what changelist # you're playing.");10266 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.");10267 return m_paiOtherPlayerNumMajorsConquered[ePlayer];10268}
Called by
- CvDiplomacyAI::ChangeOtherPlayerNumMajorsConquered(PlayerTypes, int)
- CvDiplomacyAI::DoUpdateEstimateOtherPlayerMilitaryThreats()
- CvDiplomacyAI::DoUpdateMilitaryThreats()
- CvDiplomacyAI::DoUpdateWarmongerThreats()
- CvDiplomacyAI::GetGreetHumanMessage(LeaderheadAnimationTypes &)
- CvGrandStrategyAI::GetGuessOtherPlayerConquestPriority(PlayerTypes, int)