Bazaar developer reference

CvDiplomacyAI::SetEstimateOtherPlayerVictoryDisputeLevel(PlayerTypes, PlayerTypes, DisputeLevelTypes)

Defined in
CvDiplomacyAI.cpp, line 8726
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_SetEstimateOtherPlayerVictoryDisputeLevel

Hooks

static bool BeforeCvDiplomacyAI_SetEstimateOtherPlayerVictoryDisputeLevel(CvDiplomacyAI* self, PlayerTypes ePlayer, PlayerTypes eWithPlayer, DisputeLevelTypes eDisputeLevel);static void AfterCvDiplomacyAI_SetEstimateOtherPlayerVictoryDisputeLevel(CvDiplomacyAI* self, PlayerTypes ePlayer, PlayerTypes eWithPlayer, DisputeLevelTypes eDisputeLevel);static void ReplaceCvDiplomacyAI_SetEstimateOtherPlayerVictoryDisputeLevel(void (*original)(CvDiplomacyAI*, PlayerTypes, PlayerTypes, DisputeLevelTypes), CvDiplomacyAI* self, PlayerTypes ePlayer, PlayerTypes eWithPlayer, DisputeLevelTypes eDisputeLevel);CivRegisterBefore<CivHooks::CvDiplomacyAI_SetEstimateOtherPlayerVictoryDisputeLevel>(host, &BeforeCvDiplomacyAI_SetEstimateOtherPlayerVictoryDisputeLevel);CivRegisterAfter<CivHooks::CvDiplomacyAI_SetEstimateOtherPlayerVictoryDisputeLevel>(host, &AfterCvDiplomacyAI_SetEstimateOtherPlayerVictoryDisputeLevel);CivRegisterReplace<CivHooks::CvDiplomacyAI_SetEstimateOtherPlayerVictoryDisputeLevel>(host, &ReplaceCvDiplomacyAI_SetEstimateOtherPlayerVictoryDisputeLevel);

Code

8725/// Sets what our guess is as to the level of Dispute between two players over Victory8726void CvDiplomacyAI::SetEstimateOtherPlayerVictoryDisputeLevel(PlayerTypes ePlayer, PlayerTypes eWithPlayer, DisputeLevelTypes eDisputeLevel)8727{8728	CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");8729	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.");8730	CvAssertMsg(eWithPlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");8731	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.");8732	CvAssertMsg(eDisputeLevel >= 0, "DIPLOMACY_AI: Invalid DisputeLevelType.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");8733	CvAssertMsg(eDisputeLevel < NUM_DISPUTE_LEVELS, "DIPLOMACY_AI: Invalid DisputeLevelType.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");8734	m_ppaaeOtherPlayerVictoryDisputeLevel[ePlayer][eWithPlayer] = eDisputeLevel;8735}

Called by