CvDiplomacyAI::GetExpansionAggressivePosture(PlayerTypes) const
- Defined in
- CvDiplomacyAI.cpp, line 8412
- Class
- CvDiplomacyAI
- Hook name
CivHooks::CvDiplomacyAI_GetExpansionAggressivePosture
Hooks
static bool BeforeCvDiplomacyAI_GetExpansionAggressivePosture(const CvDiplomacyAI* self, PlayerTypes ePlayer, AggressivePostureTypes& result);static void AfterCvDiplomacyAI_GetExpansionAggressivePosture(const CvDiplomacyAI* self, PlayerTypes ePlayer, AggressivePostureTypes& result);static AggressivePostureTypes ReplaceCvDiplomacyAI_GetExpansionAggressivePosture(AggressivePostureTypes (*original)(const CvDiplomacyAI*, PlayerTypes), const CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetExpansionAggressivePosture>(host, &BeforeCvDiplomacyAI_GetExpansionAggressivePosture);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetExpansionAggressivePosture>(host, &AfterCvDiplomacyAI_GetExpansionAggressivePosture);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetExpansionAggressivePosture>(host, &ReplaceCvDiplomacyAI_GetExpansionAggressivePosture);
Code
8411/// How aggressively has this player settled in relation to us?8412AggressivePostureTypes CvDiplomacyAI::GetExpansionAggressivePosture(PlayerTypes ePlayer) const8413{8414 CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index. Please send Jon this with your last 5 autosaves and what changelist # you're playing.");8415 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.");8416 return (AggressivePostureTypes) m_paeExpansionAggressivePosture[ePlayer];8417}
Called by
- CvAdvisorCounsel::BuildCounselList(PlayerTypes)
- CvDiplomacyAI::DoExpansionWarningStatement(PlayerTypes, DiploStatementTypes &)
- CvDiplomacyAI::DoFromUIDiploEvent(PlayerTypes, FromUIDiploEventTypes, int, int)
- CvDiplomacyAI::DoTestPromises()
- CvDiplomacyAI::DoUpdateLandDisputeLevels()
- CvDiplomacyAI::GetGreetHumanMessage(LeaderheadAnimationTypes &)
- CvDiplomacyAI::LogExpansionAggressivePosture(CvString &, PlayerTypes)