Bazaar developer reference

CvDiplomacyAI::SetPlayerStopSpyingRequestCounter(PlayerTypes, int)

Defined in
CvDiplomacyAI.cpp, line 21083
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_SetPlayerStopSpyingRequestCounter

Hooks

static bool BeforeCvDiplomacyAI_SetPlayerStopSpyingRequestCounter(CvDiplomacyAI* self, PlayerTypes ePlayer, int iValue);static void AfterCvDiplomacyAI_SetPlayerStopSpyingRequestCounter(CvDiplomacyAI* self, PlayerTypes ePlayer, int iValue);static void ReplaceCvDiplomacyAI_SetPlayerStopSpyingRequestCounter(void (*original)(CvDiplomacyAI*, PlayerTypes, int), CvDiplomacyAI* self, PlayerTypes ePlayer, int iValue);CivRegisterBefore<CivHooks::CvDiplomacyAI_SetPlayerStopSpyingRequestCounter>(host, &BeforeCvDiplomacyAI_SetPlayerStopSpyingRequestCounter);CivRegisterAfter<CivHooks::CvDiplomacyAI_SetPlayerStopSpyingRequestCounter>(host, &AfterCvDiplomacyAI_SetPlayerStopSpyingRequestCounter);CivRegisterReplace<CivHooks::CvDiplomacyAI_SetPlayerStopSpyingRequestCounter>(host, &ReplaceCvDiplomacyAI_SetPlayerStopSpyingRequestCounter);

Code

21083void CvDiplomacyAI::SetPlayerStopSpyingRequestCounter(PlayerTypes ePlayer, int iValue)21084{21085	CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send slewis this with your last 5 autosaves and what changelist # you're playing.");21086	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.");21087	m_paiPlayerStopSpyingRequestCounter[ePlayer] = iValue;21088}

Called by