Bazaar developer reference

CvDiplomacyAI::GetLastTurnMilitaryAggressivePosture(PlayerTypes) const

Defined in
CvDiplomacyAI.cpp, line 9385
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_GetLastTurnMilitaryAggressivePosture

Hooks

static bool BeforeCvDiplomacyAI_GetLastTurnMilitaryAggressivePosture(const CvDiplomacyAI* self, PlayerTypes ePlayer, AggressivePostureTypes& result);static void AfterCvDiplomacyAI_GetLastTurnMilitaryAggressivePosture(const CvDiplomacyAI* self, PlayerTypes ePlayer, AggressivePostureTypes& result);static AggressivePostureTypes ReplaceCvDiplomacyAI_GetLastTurnMilitaryAggressivePosture(AggressivePostureTypes (*original)(const CvDiplomacyAI*, PlayerTypes), const CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetLastTurnMilitaryAggressivePosture>(host, &BeforeCvDiplomacyAI_GetLastTurnMilitaryAggressivePosture);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetLastTurnMilitaryAggressivePosture>(host, &AfterCvDiplomacyAI_GetLastTurnMilitaryAggressivePosture);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetLastTurnMilitaryAggressivePosture>(host, &ReplaceCvDiplomacyAI_GetLastTurnMilitaryAggressivePosture);

Code

9384/// How aggressively are this player's Units positioned in relation to us? (previous turn)9385AggressivePostureTypes CvDiplomacyAI::GetLastTurnMilitaryAggressivePosture(PlayerTypes ePlayer) const9386{9387	CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");9388	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.");9389	return (AggressivePostureTypes) m_paeLastTurnMilitaryAggressivePosture[ePlayer];9390}

Called by