CvDiplomacyAI::SetMilitaryAggressivePosture(PlayerTypes, AggressivePostureTypes)
- Defined in
- CvDiplomacyAI.cpp, line 9373
- Class
- CvDiplomacyAI
- Hook name
CivHooks::CvDiplomacyAI_SetMilitaryAggressivePosture
Hooks
static bool BeforeCvDiplomacyAI_SetMilitaryAggressivePosture(CvDiplomacyAI* self, PlayerTypes ePlayer, AggressivePostureTypes ePosture);static void AfterCvDiplomacyAI_SetMilitaryAggressivePosture(CvDiplomacyAI* self, PlayerTypes ePlayer, AggressivePostureTypes ePosture);static void ReplaceCvDiplomacyAI_SetMilitaryAggressivePosture(void (*original)(CvDiplomacyAI*, PlayerTypes, AggressivePostureTypes), CvDiplomacyAI* self, PlayerTypes ePlayer, AggressivePostureTypes ePosture);CivRegisterBefore<CivHooks::CvDiplomacyAI_SetMilitaryAggressivePosture>(host, &BeforeCvDiplomacyAI_SetMilitaryAggressivePosture);CivRegisterAfter<CivHooks::CvDiplomacyAI_SetMilitaryAggressivePosture>(host, &AfterCvDiplomacyAI_SetMilitaryAggressivePosture);CivRegisterReplace<CivHooks::CvDiplomacyAI_SetMilitaryAggressivePosture>(host, &ReplaceCvDiplomacyAI_SetMilitaryAggressivePosture);
Code
9372/// Set how aggressively this player has stationed his military Units in relation to us9373void CvDiplomacyAI::SetMilitaryAggressivePosture(PlayerTypes ePlayer, AggressivePostureTypes ePosture)9374{9375 CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index. Please send Jon this with your last 5 autosaves and what changelist # you're playing.");9376 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.");9377 CvAssertMsg(ePosture >= 0, "DIPLOMACY_AI: Invalid AggressivePostureType. Please send Jon this with your last 5 autosaves and what changelist # you're playing.");9378 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.");93799380 m_paeMilitaryAggressivePosture[ePlayer] = ePosture;9381}