Bazaar developer reference

CvDiplomacyAI::IsPlayerStopSpyingRequestAccepted(PlayerTypes) const

Defined in
CvDiplomacyAI.cpp, line 21058
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_IsPlayerStopSpyingRequestAccepted

Hooks

static bool BeforeCvDiplomacyAI_IsPlayerStopSpyingRequestAccepted(const CvDiplomacyAI* self, PlayerTypes ePlayer, bool& result);static void AfterCvDiplomacyAI_IsPlayerStopSpyingRequestAccepted(const CvDiplomacyAI* self, PlayerTypes ePlayer, bool& result);static bool ReplaceCvDiplomacyAI_IsPlayerStopSpyingRequestAccepted(bool (*original)(const CvDiplomacyAI*, PlayerTypes), const CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_IsPlayerStopSpyingRequestAccepted>(host, &BeforeCvDiplomacyAI_IsPlayerStopSpyingRequestAccepted);CivRegisterAfter<CivHooks::CvDiplomacyAI_IsPlayerStopSpyingRequestAccepted>(host, &AfterCvDiplomacyAI_IsPlayerStopSpyingRequestAccepted);CivRegisterReplace<CivHooks::CvDiplomacyAI_IsPlayerStopSpyingRequestAccepted>(host, &ReplaceCvDiplomacyAI_IsPlayerStopSpyingRequestAccepted);

Code

21058bool CvDiplomacyAI::IsPlayerStopSpyingRequestAccepted(PlayerTypes ePlayer) const21059{21060	CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send slewis this with your last 5 autosaves and what changelist # you're playing.");21061	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.");21062	return m_pabPlayerStopSpyingRequestAccepted[ePlayer];21063}

Called by