Bazaar developer reference

CvDiplomacyAI::IsDenouncedPlayer(PlayerTypes) const

Defined in
CvDiplomacyAI.cpp, line 21645
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_IsDenouncedPlayer

Hooks

static bool BeforeCvDiplomacyAI_IsDenouncedPlayer(const CvDiplomacyAI* self, PlayerTypes ePlayer, bool& result);static void AfterCvDiplomacyAI_IsDenouncedPlayer(const CvDiplomacyAI* self, PlayerTypes ePlayer, bool& result);static bool ReplaceCvDiplomacyAI_IsDenouncedPlayer(bool (*original)(const CvDiplomacyAI*, PlayerTypes), const CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_IsDenouncedPlayer>(host, &BeforeCvDiplomacyAI_IsDenouncedPlayer);CivRegisterAfter<CivHooks::CvDiplomacyAI_IsDenouncedPlayer>(host, &AfterCvDiplomacyAI_IsDenouncedPlayer);CivRegisterReplace<CivHooks::CvDiplomacyAI_IsDenouncedPlayer>(host, &ReplaceCvDiplomacyAI_IsDenouncedPlayer);

Code

21645bool CvDiplomacyAI::IsDenouncedPlayer(PlayerTypes ePlayer) const21646{21647	CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");21648	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.");21649	return m_pabDenouncedPlayer[ePlayer];21650}

Called by