Bazaar developer reference

CvDiplomacyAI::SetEstimateOtherPlayerLandDisputeLevel(PlayerTypes, PlayerTypes, DisputeLevelTypes)

Defined in
CvDiplomacyAI.cpp, line 7762
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_SetEstimateOtherPlayerLandDisputeLevel

Hooks

static bool BeforeCvDiplomacyAI_SetEstimateOtherPlayerLandDisputeLevel(CvDiplomacyAI* self, PlayerTypes ePlayer, PlayerTypes eWithPlayer, DisputeLevelTypes eDisputeLevel);static void AfterCvDiplomacyAI_SetEstimateOtherPlayerLandDisputeLevel(CvDiplomacyAI* self, PlayerTypes ePlayer, PlayerTypes eWithPlayer, DisputeLevelTypes eDisputeLevel);static void ReplaceCvDiplomacyAI_SetEstimateOtherPlayerLandDisputeLevel(void (*original)(CvDiplomacyAI*, PlayerTypes, PlayerTypes, DisputeLevelTypes), CvDiplomacyAI* self, PlayerTypes ePlayer, PlayerTypes eWithPlayer, DisputeLevelTypes eDisputeLevel);CivRegisterBefore<CivHooks::CvDiplomacyAI_SetEstimateOtherPlayerLandDisputeLevel>(host, &BeforeCvDiplomacyAI_SetEstimateOtherPlayerLandDisputeLevel);CivRegisterAfter<CivHooks::CvDiplomacyAI_SetEstimateOtherPlayerLandDisputeLevel>(host, &AfterCvDiplomacyAI_SetEstimateOtherPlayerLandDisputeLevel);CivRegisterReplace<CivHooks::CvDiplomacyAI_SetEstimateOtherPlayerLandDisputeLevel>(host, &ReplaceCvDiplomacyAI_SetEstimateOtherPlayerLandDisputeLevel);

Code

7761/// Sets what our guess is as to the level of Dispute between two players over Land7762void CvDiplomacyAI::SetEstimateOtherPlayerLandDisputeLevel(PlayerTypes ePlayer, PlayerTypes eWithPlayer, DisputeLevelTypes eDisputeLevel)7763{7764	CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");7765	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.");7766	CvAssertMsg(eWithPlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");7767	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.");7768	CvAssertMsg(eDisputeLevel >= 0, "DIPLOMACY_AI: Invalid DisputeLevelType.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");7769	CvAssertMsg(eDisputeLevel < NUM_DISPUTE_LEVELS, "DIPLOMACY_AI: Invalid DisputeLevelType.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");7770	m_ppaaeOtherPlayerLandDisputeLevel[ePlayer][eWithPlayer] = eDisputeLevel;7771}

Called by