Bazaar developer reference

CvDiplomacyAI::GetEstimateOtherPlayerLandDisputeLevel(PlayerTypes, PlayerTypes) const

Defined in
CvDiplomacyAI.cpp, line 7752
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_GetEstimateOtherPlayerLandDisputeLevel

Hooks

static bool BeforeCvDiplomacyAI_GetEstimateOtherPlayerLandDisputeLevel(const CvDiplomacyAI* self, PlayerTypes ePlayer, PlayerTypes eWithPlayer, DisputeLevelTypes& result);static void AfterCvDiplomacyAI_GetEstimateOtherPlayerLandDisputeLevel(const CvDiplomacyAI* self, PlayerTypes ePlayer, PlayerTypes eWithPlayer, DisputeLevelTypes& result);static DisputeLevelTypes ReplaceCvDiplomacyAI_GetEstimateOtherPlayerLandDisputeLevel(DisputeLevelTypes (*original)(const CvDiplomacyAI*, PlayerTypes, PlayerTypes), const CvDiplomacyAI* self, PlayerTypes ePlayer, PlayerTypes eWithPlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetEstimateOtherPlayerLandDisputeLevel>(host, &BeforeCvDiplomacyAI_GetEstimateOtherPlayerLandDisputeLevel);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetEstimateOtherPlayerLandDisputeLevel>(host, &AfterCvDiplomacyAI_GetEstimateOtherPlayerLandDisputeLevel);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetEstimateOtherPlayerLandDisputeLevel>(host, &ReplaceCvDiplomacyAI_GetEstimateOtherPlayerLandDisputeLevel);

Code

7751/// What is our guess as to the level of Dispute between two players over Land?7752DisputeLevelTypes CvDiplomacyAI::GetEstimateOtherPlayerLandDisputeLevel(PlayerTypes ePlayer, PlayerTypes eWithPlayer) const7753{7754	CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");7755	CvAssertMsg(ePlayer < MAX_CIV_PLAYERS, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");7756	CvAssertMsg(eWithPlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");7757	CvAssertMsg(eWithPlayer < MAX_CIV_PLAYERS, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");7758	return (DisputeLevelTypes) m_ppaaeOtherPlayerLandDisputeLevel[ePlayer][eWithPlayer];7759}

Called by