Bazaar developer reference

CvDiplomacyAI::GetIgnoredBorderPromiseValue(PlayerTypes)

Defined in
CvDiplomacyAI.cpp, line 7907
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_GetIgnoredBorderPromiseValue

Hooks

static bool BeforeCvDiplomacyAI_GetIgnoredBorderPromiseValue(CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static void AfterCvDiplomacyAI_GetIgnoredBorderPromiseValue(CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static int ReplaceCvDiplomacyAI_GetIgnoredBorderPromiseValue(int (*original)(CvDiplomacyAI*, PlayerTypes), CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetIgnoredBorderPromiseValue>(host, &BeforeCvDiplomacyAI_GetIgnoredBorderPromiseValue);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetIgnoredBorderPromiseValue>(host, &AfterCvDiplomacyAI_GetIgnoredBorderPromiseValue);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetIgnoredBorderPromiseValue>(host, &ReplaceCvDiplomacyAI_GetIgnoredBorderPromiseValue);

Code

7907int CvDiplomacyAI::GetIgnoredBorderPromiseValue(PlayerTypes ePlayer)7908{7909	return m_paiIgnoredBorderPromiseValue[(int)ePlayer];	7910}

Called by