Bazaar developer reference

CvDiplomacyAI::IsPlayerStopSpyingRequestRejected(PlayerTypes) const

Defined in
CvDiplomacyAI.cpp, line 21045
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_IsPlayerStopSpyingRequestRejected

Hooks

static bool BeforeCvDiplomacyAI_IsPlayerStopSpyingRequestRejected(const CvDiplomacyAI* self, PlayerTypes ePlayer, bool& result);static void AfterCvDiplomacyAI_IsPlayerStopSpyingRequestRejected(const CvDiplomacyAI* self, PlayerTypes ePlayer, bool& result);static bool ReplaceCvDiplomacyAI_IsPlayerStopSpyingRequestRejected(bool (*original)(const CvDiplomacyAI*, PlayerTypes), const CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_IsPlayerStopSpyingRequestRejected>(host, &BeforeCvDiplomacyAI_IsPlayerStopSpyingRequestRejected);CivRegisterAfter<CivHooks::CvDiplomacyAI_IsPlayerStopSpyingRequestRejected>(host, &AfterCvDiplomacyAI_IsPlayerStopSpyingRequestRejected);CivRegisterReplace<CivHooks::CvDiplomacyAI_IsPlayerStopSpyingRequestRejected>(host, &ReplaceCvDiplomacyAI_IsPlayerStopSpyingRequestRejected);

Code

21045bool CvDiplomacyAI::IsPlayerStopSpyingRequestRejected(PlayerTypes ePlayer) const21046{21047	// If the counter is -1, it means he hasn't asked21048	if(GetPlayerStopSpyingRequestCounter(ePlayer) < 0)21049		return false;2105021051	// Did the player actually accept?21052	if(IsPlayerStopSpyingRequestAccepted(ePlayer))21053		return false;2105421055	return true;21056}

Calls