CvDiplomacyAI::GetPlayerMilitaryStrengthComparedToUs(PlayerTypes) const
- Defined in
- CvDiplomacyAI.cpp, line 6566
- Class
- CvDiplomacyAI
- Hook name
CivHooks::CvDiplomacyAI_GetPlayerMilitaryStrengthComparedToUs
Hooks
static bool BeforeCvDiplomacyAI_GetPlayerMilitaryStrengthComparedToUs(const CvDiplomacyAI* self, PlayerTypes ePlayer, StrengthTypes& result);static void AfterCvDiplomacyAI_GetPlayerMilitaryStrengthComparedToUs(const CvDiplomacyAI* self, PlayerTypes ePlayer, StrengthTypes& result);static StrengthTypes ReplaceCvDiplomacyAI_GetPlayerMilitaryStrengthComparedToUs(StrengthTypes (*original)(const CvDiplomacyAI*, PlayerTypes), const CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetPlayerMilitaryStrengthComparedToUs>(host, &BeforeCvDiplomacyAI_GetPlayerMilitaryStrengthComparedToUs);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetPlayerMilitaryStrengthComparedToUs>(host, &AfterCvDiplomacyAI_GetPlayerMilitaryStrengthComparedToUs);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetPlayerMilitaryStrengthComparedToUs>(host, &ReplaceCvDiplomacyAI_GetPlayerMilitaryStrengthComparedToUs);
Code
6565/// What is our assessment of this player's overall Military strength?6566StrengthTypes CvDiplomacyAI::GetPlayerMilitaryStrengthComparedToUs(PlayerTypes ePlayer) const6567{6568 CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index. Please send Jon this with your last 5 autosaves and what changelist # you're playing.");6569 CvAssertMsg(ePlayer < MAX_CIV_PLAYERS, "DIPLOMACY_AI: Invalid Player Index. Please send Jon this with your last 5 autosaves and what changelist # you're playing.");6570 return (StrengthTypes) m_paePlayerMilitaryStrengthComparedToUs[ePlayer];6571}
Called by
- CvAdvisorCounsel::BuildCounselList(PlayerTypes)
- CvDealAI::DoHumanDemand(CvDeal *)
- CvDiplomacyAI::DoFYIDenouncedHumanEnemy(PlayerTypes, DiploStatementTypes &, int &)
- CvDiplomacyAI::DoUpdateOnePlayerTargetValue(PlayerTypes)
- CvDiplomacyAI::GetAttackedByHumanMessage()
- CvDiplomacyAI::GetDenounceWeight(PlayerTypes, bool)
- CvDiplomacyAI::GetGreetHumanMessage(LeaderheadAnimationTypes &)
- CvDiplomacyAI::GetInsultHumanMessage()
- CvDiplomacyAI::GetWarMessage(PlayerTypes)
- CvDiplomacyAI::GetWarScore(PlayerTypes)
- CvDiplomacyAI::IsDenounceFriendAcceptable(PlayerTypes)
- CvDiplomacyAI::IsDontSettleAcceptable(PlayerTypes) const
- CvDiplomacyAI::IsPlayerRecklessExpander(PlayerTypes)
- CvDiplomacyAI::IsWantsOpenBordersWithPlayer(PlayerTypes)
- CvDiplomacyAI::LogMilitaryStrength(CvString &, PlayerTypes)
- CvMilitaryAI::UpdateOperations()