Bazaar developer reference

CvDiplomacyAI::IsDoFAccepted(PlayerTypes) const

Defined in
CvDiplomacyAI.cpp, line 21222
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_IsDoFAccepted

Hooks

static bool BeforeCvDiplomacyAI_IsDoFAccepted(const CvDiplomacyAI* self, PlayerTypes ePlayer, bool& result);static void AfterCvDiplomacyAI_IsDoFAccepted(const CvDiplomacyAI* self, PlayerTypes ePlayer, bool& result);static bool ReplaceCvDiplomacyAI_IsDoFAccepted(bool (*original)(const CvDiplomacyAI*, PlayerTypes), const CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_IsDoFAccepted>(host, &BeforeCvDiplomacyAI_IsDoFAccepted);CivRegisterAfter<CivHooks::CvDiplomacyAI_IsDoFAccepted>(host, &AfterCvDiplomacyAI_IsDoFAccepted);CivRegisterReplace<CivHooks::CvDiplomacyAI_IsDoFAccepted>(host, &ReplaceCvDiplomacyAI_IsDoFAccepted);

Code

21222bool CvDiplomacyAI::IsDoFAccepted(PlayerTypes ePlayer) const21223{21224	CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");21225	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.");21226	return m_pabDoFAccepted[ePlayer];21227}

Called by

36 functions in 8 files