Bazaar developer reference

CvDiplomacyAI::GetPlayerEconomicStrengthComparedToUs(PlayerTypes) const

Defined in
CvDiplomacyAI.cpp, line 6649
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_GetPlayerEconomicStrengthComparedToUs

Hooks

static bool BeforeCvDiplomacyAI_GetPlayerEconomicStrengthComparedToUs(const CvDiplomacyAI* self, PlayerTypes ePlayer, StrengthTypes& result);static void AfterCvDiplomacyAI_GetPlayerEconomicStrengthComparedToUs(const CvDiplomacyAI* self, PlayerTypes ePlayer, StrengthTypes& result);static StrengthTypes ReplaceCvDiplomacyAI_GetPlayerEconomicStrengthComparedToUs(StrengthTypes (*original)(const CvDiplomacyAI*, PlayerTypes), const CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetPlayerEconomicStrengthComparedToUs>(host, &BeforeCvDiplomacyAI_GetPlayerEconomicStrengthComparedToUs);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetPlayerEconomicStrengthComparedToUs>(host, &AfterCvDiplomacyAI_GetPlayerEconomicStrengthComparedToUs);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetPlayerEconomicStrengthComparedToUs>(host, &ReplaceCvDiplomacyAI_GetPlayerEconomicStrengthComparedToUs);

Code

6648/// What is our assessment of this player's overall Economic strength?6649StrengthTypes CvDiplomacyAI::GetPlayerEconomicStrengthComparedToUs(PlayerTypes ePlayer) const6650{6651	CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");6652	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.");6653	return (StrengthTypes) m_paePlayerEconomicStrengthComparedToUs[ePlayer];6654}

Called by