Bazaar developer reference

CvDiplomacyAI::GetPlayerStopSpyingRequestCounter(PlayerTypes) const

Defined in
CvDiplomacyAI.cpp, line 21076
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_GetPlayerStopSpyingRequestCounter

Hooks

static bool BeforeCvDiplomacyAI_GetPlayerStopSpyingRequestCounter(const CvDiplomacyAI* self, PlayerTypes ePlayer, short& result);static void AfterCvDiplomacyAI_GetPlayerStopSpyingRequestCounter(const CvDiplomacyAI* self, PlayerTypes ePlayer, short& result);static short ReplaceCvDiplomacyAI_GetPlayerStopSpyingRequestCounter(short (*original)(const CvDiplomacyAI*, PlayerTypes), const CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetPlayerStopSpyingRequestCounter>(host, &BeforeCvDiplomacyAI_GetPlayerStopSpyingRequestCounter);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetPlayerStopSpyingRequestCounter>(host, &AfterCvDiplomacyAI_GetPlayerStopSpyingRequestCounter);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetPlayerStopSpyingRequestCounter>(host, &ReplaceCvDiplomacyAI_GetPlayerStopSpyingRequestCounter);

Code

21076short CvDiplomacyAI::GetPlayerStopSpyingRequestCounter(PlayerTypes ePlayer) const21077{21078	CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send slewis this with your last 5 autosaves and what changelist # you're playing.");21079	CvAssertMsg(ePlayer < MAX_MAJOR_CIVS, "DIPLOMACY_AI: Invalid Player Index.  Please send slewis this with your last 5 autosaves and what changelist # you're playing.");21080	return m_paiPlayerStopSpyingRequestCounter[ePlayer];21081}

Called by