Bazaar developer reference

CvDiplomacyAI::DoUpdateExpansionAggressivePostures()

Defined in
CvDiplomacyAI.cpp, line 8431
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_DoUpdateExpansionAggressivePostures

Hooks

static bool BeforeCvDiplomacyAI_DoUpdateExpansionAggressivePostures(CvDiplomacyAI* self);static void AfterCvDiplomacyAI_DoUpdateExpansionAggressivePostures(CvDiplomacyAI* self);static void ReplaceCvDiplomacyAI_DoUpdateExpansionAggressivePostures(void (*original)(CvDiplomacyAI*), CvDiplomacyAI* self);CivRegisterBefore<CivHooks::CvDiplomacyAI_DoUpdateExpansionAggressivePostures>(host, &BeforeCvDiplomacyAI_DoUpdateExpansionAggressivePostures);CivRegisterAfter<CivHooks::CvDiplomacyAI_DoUpdateExpansionAggressivePostures>(host, &AfterCvDiplomacyAI_DoUpdateExpansionAggressivePostures);CivRegisterReplace<CivHooks::CvDiplomacyAI_DoUpdateExpansionAggressivePostures>(host, &ReplaceCvDiplomacyAI_DoUpdateExpansionAggressivePostures);

Code

8430/// Updates how aggressively this player's Units are positioned in relation to us8431void CvDiplomacyAI::DoUpdateExpansionAggressivePostures()8432{8433	if(GetPlayer()->getCapitalCity() == NULL)8434		return;84358436	// Loop through all (known) Players8437	PlayerTypes eLoopPlayer;8438	for(int iPlayerLoop = 0; iPlayerLoop < MAX_CIV_PLAYERS; iPlayerLoop++)8439	{8440		eLoopPlayer = (PlayerTypes) iPlayerLoop;84418442		DoUpdateOnePlayerExpansionAggressivePosture(eLoopPlayer);8443	}8444}

Calls

Called by