Bazaar developer reference

CvDiplomacyAI::DoUpdatePlayerTargetValues()

Defined in
CvDiplomacyAI.cpp, line 6749
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_DoUpdatePlayerTargetValues

Hooks

static bool BeforeCvDiplomacyAI_DoUpdatePlayerTargetValues(CvDiplomacyAI* self);static void AfterCvDiplomacyAI_DoUpdatePlayerTargetValues(CvDiplomacyAI* self);static void ReplaceCvDiplomacyAI_DoUpdatePlayerTargetValues(void (*original)(CvDiplomacyAI*), CvDiplomacyAI* self);CivRegisterBefore<CivHooks::CvDiplomacyAI_DoUpdatePlayerTargetValues>(host, &BeforeCvDiplomacyAI_DoUpdatePlayerTargetValues);CivRegisterAfter<CivHooks::CvDiplomacyAI_DoUpdatePlayerTargetValues>(host, &AfterCvDiplomacyAI_DoUpdatePlayerTargetValues);CivRegisterReplace<CivHooks::CvDiplomacyAI_DoUpdatePlayerTargetValues>(host, &ReplaceCvDiplomacyAI_DoUpdatePlayerTargetValues);

Code

6748/// Updates what our assessment is of all players' value as a military target6749void CvDiplomacyAI::DoUpdatePlayerTargetValues()6750{6751	PlayerTypes eLoopPlayer;6752	// Loop through all (known) Players6753	for(int iPlayerLoop = 0; iPlayerLoop < MAX_CIV_PLAYERS; iPlayerLoop++)6754	{6755		eLoopPlayer = (PlayerTypes) iPlayerLoop;67566757		DoUpdateOnePlayerTargetValue(eLoopPlayer);6758	}6759}

Calls

Called by