Bazaar developer reference

CvDiplomacyAI::GetEstimateOtherPlayerVictoryDisputeLevel(PlayerTypes, PlayerTypes) const

Defined in
CvDiplomacyAI.cpp, line 8716
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_GetEstimateOtherPlayerVictoryDisputeLevel

Hooks

static bool BeforeCvDiplomacyAI_GetEstimateOtherPlayerVictoryDisputeLevel(const CvDiplomacyAI* self, PlayerTypes ePlayer, PlayerTypes eWithPlayer, DisputeLevelTypes& result);static void AfterCvDiplomacyAI_GetEstimateOtherPlayerVictoryDisputeLevel(const CvDiplomacyAI* self, PlayerTypes ePlayer, PlayerTypes eWithPlayer, DisputeLevelTypes& result);static DisputeLevelTypes ReplaceCvDiplomacyAI_GetEstimateOtherPlayerVictoryDisputeLevel(DisputeLevelTypes (*original)(const CvDiplomacyAI*, PlayerTypes, PlayerTypes), const CvDiplomacyAI* self, PlayerTypes ePlayer, PlayerTypes eWithPlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetEstimateOtherPlayerVictoryDisputeLevel>(host, &BeforeCvDiplomacyAI_GetEstimateOtherPlayerVictoryDisputeLevel);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetEstimateOtherPlayerVictoryDisputeLevel>(host, &AfterCvDiplomacyAI_GetEstimateOtherPlayerVictoryDisputeLevel);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetEstimateOtherPlayerVictoryDisputeLevel>(host, &ReplaceCvDiplomacyAI_GetEstimateOtherPlayerVictoryDisputeLevel);

Code

8715/// What is our guess as to the level of Dispute between two players over Victory?8716DisputeLevelTypes CvDiplomacyAI::GetEstimateOtherPlayerVictoryDisputeLevel(PlayerTypes ePlayer, PlayerTypes eWithPlayer) const8717{8718	CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");8719	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.");8720	CvAssertMsg(eWithPlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");8721	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.");8722	return (DisputeLevelTypes) m_ppaaeOtherPlayerVictoryDisputeLevel[ePlayer][eWithPlayer];8723}

Called by