Bazaar developer reference

CvDiplomacyAI::IsPlayerStopSpyingRequestEverAsked(PlayerTypes) const

Defined in
CvDiplomacyAI.cpp, line 21034
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_IsPlayerStopSpyingRequestEverAsked

Hooks

static bool BeforeCvDiplomacyAI_IsPlayerStopSpyingRequestEverAsked(const CvDiplomacyAI* self, PlayerTypes ePlayer, bool& result);static void AfterCvDiplomacyAI_IsPlayerStopSpyingRequestEverAsked(const CvDiplomacyAI* self, PlayerTypes ePlayer, bool& result);static bool ReplaceCvDiplomacyAI_IsPlayerStopSpyingRequestEverAsked(bool (*original)(const CvDiplomacyAI*, PlayerTypes), const CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_IsPlayerStopSpyingRequestEverAsked>(host, &BeforeCvDiplomacyAI_IsPlayerStopSpyingRequestEverAsked);CivRegisterAfter<CivHooks::CvDiplomacyAI_IsPlayerStopSpyingRequestEverAsked>(host, &AfterCvDiplomacyAI_IsPlayerStopSpyingRequestEverAsked);CivRegisterReplace<CivHooks::CvDiplomacyAI_IsPlayerStopSpyingRequestEverAsked>(host, &ReplaceCvDiplomacyAI_IsPlayerStopSpyingRequestEverAsked);

Code

21033/// Has ePlayer ever asked about us not spying on him?21034bool CvDiplomacyAI::IsPlayerStopSpyingRequestEverAsked(PlayerTypes ePlayer) const21035{21036	// Counter set to -1 at start. Gets reset to -66621037	if(GetPlayerStopSpyingRequestCounter(ePlayer) == -1)21038	{21039		return false;21040	}2104121042	return true;21043}

Calls

Called by