Bazaar developer reference

CvDiplomacyAI::GetDenouncedPlayerCounter(PlayerTypes) const

Defined in
CvDiplomacyAI.cpp, line 21669
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_GetDenouncedPlayerCounter

Hooks

static bool BeforeCvDiplomacyAI_GetDenouncedPlayerCounter(const CvDiplomacyAI* self, PlayerTypes ePlayer, short& result);static void AfterCvDiplomacyAI_GetDenouncedPlayerCounter(const CvDiplomacyAI* self, PlayerTypes ePlayer, short& result);static short ReplaceCvDiplomacyAI_GetDenouncedPlayerCounter(short (*original)(const CvDiplomacyAI*, PlayerTypes), const CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetDenouncedPlayerCounter>(host, &BeforeCvDiplomacyAI_GetDenouncedPlayerCounter);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetDenouncedPlayerCounter>(host, &AfterCvDiplomacyAI_GetDenouncedPlayerCounter);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetDenouncedPlayerCounter>(host, &ReplaceCvDiplomacyAI_GetDenouncedPlayerCounter);

Code

21669short CvDiplomacyAI::GetDenouncedPlayerCounter(PlayerTypes ePlayer) const21670{21671	CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");21672	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.");21673	return m_paiDenouncedPlayerCounter[ePlayer];21674}

Called by