CvDiplomacyAI::SetPlayerEconomicStrengthComparedToUs(PlayerTypes, StrengthTypes)
- Defined in
- CvDiplomacyAI.cpp, line 6657
- Class
- CvDiplomacyAI
- Hook name
CivHooks::CvDiplomacyAI_SetPlayerEconomicStrengthComparedToUs
Hooks
static bool BeforeCvDiplomacyAI_SetPlayerEconomicStrengthComparedToUs(CvDiplomacyAI* self, PlayerTypes ePlayer, StrengthTypes eEconomicStrength);static void AfterCvDiplomacyAI_SetPlayerEconomicStrengthComparedToUs(CvDiplomacyAI* self, PlayerTypes ePlayer, StrengthTypes eEconomicStrength);static void ReplaceCvDiplomacyAI_SetPlayerEconomicStrengthComparedToUs(void (*original)(CvDiplomacyAI*, PlayerTypes, StrengthTypes), CvDiplomacyAI* self, PlayerTypes ePlayer, StrengthTypes eEconomicStrength);CivRegisterBefore<CivHooks::CvDiplomacyAI_SetPlayerEconomicStrengthComparedToUs>(host, &BeforeCvDiplomacyAI_SetPlayerEconomicStrengthComparedToUs);CivRegisterAfter<CivHooks::CvDiplomacyAI_SetPlayerEconomicStrengthComparedToUs>(host, &AfterCvDiplomacyAI_SetPlayerEconomicStrengthComparedToUs);CivRegisterReplace<CivHooks::CvDiplomacyAI_SetPlayerEconomicStrengthComparedToUs>(host, &ReplaceCvDiplomacyAI_SetPlayerEconomicStrengthComparedToUs);
Code
6656/// Set assessment of this player's overall Economic strength6657void CvDiplomacyAI::SetPlayerEconomicStrengthComparedToUs(PlayerTypes ePlayer, StrengthTypes eEconomicStrength)6658{6659 CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index. Please send Jon this with your last 5 autosaves and what changelist # you're playing.");6660 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.");6661 CvAssertMsg(eEconomicStrength >= 0, "DIPLOMACY_AI: Invalid StrengthType. Please send Jon this with your last 5 autosaves and what changelist # you're playing.");6662 CvAssertMsg(eEconomicStrength < NUM_STRENGTH_VALUES, "DIPLOMACY_AI: Invalid StrengthType. Please send Jon this with your last 5 autosaves and what changelist # you're playing.");6663 m_paePlayerEconomicStrengthComparedToUs[ePlayer] = eEconomicStrength;6664}