Bazaar developer reference

CvDiplomacyAI::DoUpdateMilitaryAggressivePostures()

Defined in
CvDiplomacyAI.cpp, line 9404
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_DoUpdateMilitaryAggressivePostures

Hooks

static bool BeforeCvDiplomacyAI_DoUpdateMilitaryAggressivePostures(CvDiplomacyAI* self);static void AfterCvDiplomacyAI_DoUpdateMilitaryAggressivePostures(CvDiplomacyAI* self);static void ReplaceCvDiplomacyAI_DoUpdateMilitaryAggressivePostures(void (*original)(CvDiplomacyAI*), CvDiplomacyAI* self);CivRegisterBefore<CivHooks::CvDiplomacyAI_DoUpdateMilitaryAggressivePostures>(host, &BeforeCvDiplomacyAI_DoUpdateMilitaryAggressivePostures);CivRegisterAfter<CivHooks::CvDiplomacyAI_DoUpdateMilitaryAggressivePostures>(host, &AfterCvDiplomacyAI_DoUpdateMilitaryAggressivePostures);CivRegisterReplace<CivHooks::CvDiplomacyAI_DoUpdateMilitaryAggressivePostures>(host, &ReplaceCvDiplomacyAI_DoUpdateMilitaryAggressivePostures);

Code

9403/// Updates how aggressively this player's Units are positioned in relation to us9404void CvDiplomacyAI::DoUpdateMilitaryAggressivePostures()9405{9406	// Loop through all (known) Players9407	PlayerTypes eLoopPlayer;9408	for(int iPlayerLoop = 0; iPlayerLoop < MAX_CIV_PLAYERS; iPlayerLoop++)9409	{9410		eLoopPlayer = (PlayerTypes) iPlayerLoop;94119412		DoUpdateOnePlayerMilitaryAggressivePosture(eLoopPlayer);9413	}9414}

Calls

Called by