Bazaar developer reference

CvDiplomacyAI::GetStopSpyingRequestScore(PlayerTypes)

Defined in
CvDiplomacyAI.cpp, line 23433
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_GetStopSpyingRequestScore

Hooks

static bool BeforeCvDiplomacyAI_GetStopSpyingRequestScore(CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static void AfterCvDiplomacyAI_GetStopSpyingRequestScore(CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static int ReplaceCvDiplomacyAI_GetStopSpyingRequestScore(int (*original)(CvDiplomacyAI*, PlayerTypes), CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetStopSpyingRequestScore>(host, &BeforeCvDiplomacyAI_GetStopSpyingRequestScore);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetStopSpyingRequestScore>(host, &AfterCvDiplomacyAI_GetStopSpyingRequestScore);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetStopSpyingRequestScore>(host, &ReplaceCvDiplomacyAI_GetStopSpyingRequestScore);

Code

23433int CvDiplomacyAI::GetStopSpyingRequestScore(PlayerTypes ePlayer)23434{23435	int iOpinionWeight = 0;23436	if(IsPlayerStopSpyingRequestEverAsked(ePlayer))23437		iOpinionWeight += /*20*/ GC.getOPINION_WEIGHT_ASKED_STOP_SPYING();23438	return iOpinionWeight;23439}

Calls

Called by