Bazaar developer reference

CvDiplomacyAI::GetPlayerBorderPromiseData(PlayerTypes)

Defined in
CvDiplomacyAI.cpp, line 22606
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_GetPlayerBorderPromiseData

Hooks

static bool BeforeCvDiplomacyAI_GetPlayerBorderPromiseData(CvDiplomacyAI* self, PlayerTypes ePlayer, AggressivePostureTypes& result);static void AfterCvDiplomacyAI_GetPlayerBorderPromiseData(CvDiplomacyAI* self, PlayerTypes ePlayer, AggressivePostureTypes& result);static AggressivePostureTypes ReplaceCvDiplomacyAI_GetPlayerBorderPromiseData(AggressivePostureTypes (*original)(CvDiplomacyAI*, PlayerTypes), CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetPlayerBorderPromiseData>(host, &BeforeCvDiplomacyAI_GetPlayerBorderPromiseData);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetPlayerBorderPromiseData>(host, &AfterCvDiplomacyAI_GetPlayerBorderPromiseData);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetPlayerBorderPromiseData>(host, &ReplaceCvDiplomacyAI_GetPlayerBorderPromiseData);

Code

22606AggressivePostureTypes CvDiplomacyAI::GetPlayerBorderPromiseData(PlayerTypes ePlayer)22607{22608	CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");22609	CvAssertMsg(ePlayer < MAX_MAJOR_CIVS, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");22610	return (AggressivePostureTypes) m_paePlayerBorderPromiseData[ePlayer];22611}

Called by