CvDiplomacyAI::SetExpansionAggressivePosture(PlayerTypes, AggressivePostureTypes)
- Defined in
- CvDiplomacyAI.cpp, line 8420
- Class
- CvDiplomacyAI
- Hook name
CivHooks::CvDiplomacyAI_SetExpansionAggressivePosture
Hooks
static bool BeforeCvDiplomacyAI_SetExpansionAggressivePosture(CvDiplomacyAI* self, PlayerTypes ePlayer, AggressivePostureTypes ePosture);static void AfterCvDiplomacyAI_SetExpansionAggressivePosture(CvDiplomacyAI* self, PlayerTypes ePlayer, AggressivePostureTypes ePosture);static void ReplaceCvDiplomacyAI_SetExpansionAggressivePosture(void (*original)(CvDiplomacyAI*, PlayerTypes, AggressivePostureTypes), CvDiplomacyAI* self, PlayerTypes ePlayer, AggressivePostureTypes ePosture);CivRegisterBefore<CivHooks::CvDiplomacyAI_SetExpansionAggressivePosture>(host, &BeforeCvDiplomacyAI_SetExpansionAggressivePosture);CivRegisterAfter<CivHooks::CvDiplomacyAI_SetExpansionAggressivePosture>(host, &AfterCvDiplomacyAI_SetExpansionAggressivePosture);CivRegisterReplace<CivHooks::CvDiplomacyAI_SetExpansionAggressivePosture>(host, &ReplaceCvDiplomacyAI_SetExpansionAggressivePosture);
Code
8419/// Set how aggressively this player has settled in relation to us8420void CvDiplomacyAI::SetExpansionAggressivePosture(PlayerTypes ePlayer, AggressivePostureTypes ePosture)8421{8422 CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index. Please send Jon this with your last 5 autosaves and what changelist # you're playing.");8423 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.");8424 CvAssertMsg(ePosture >= 0, "DIPLOMACY_AI: Invalid AggressivePostureType. Please send Jon this with your last 5 autosaves and what changelist # you're playing.");8425 CvAssertMsg(ePosture < NUM_AGGRESSIVE_POSTURE_TYPES, "DIPLOMACY_AI: Invalid AggressivePostureType. Please send Jon this with your last 5 autosaves and what changelist # you're playing.");84268427 m_paeExpansionAggressivePosture[ePlayer] = ePosture;8428}