Bazaar developer reference

CvDiplomacyAI::DoBeginDiploWithHumanEspionageResult()

Defined in
CvDiplomacyAI.cpp, line 16279
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_DoBeginDiploWithHumanEspionageResult

Hooks

static bool BeforeCvDiplomacyAI_DoBeginDiploWithHumanEspionageResult(CvDiplomacyAI* self);static void AfterCvDiplomacyAI_DoBeginDiploWithHumanEspionageResult(CvDiplomacyAI* self);static void ReplaceCvDiplomacyAI_DoBeginDiploWithHumanEspionageResult(void (*original)(CvDiplomacyAI*), CvDiplomacyAI* self);CivRegisterBefore<CivHooks::CvDiplomacyAI_DoBeginDiploWithHumanEspionageResult>(host, &BeforeCvDiplomacyAI_DoBeginDiploWithHumanEspionageResult);CivRegisterAfter<CivHooks::CvDiplomacyAI_DoBeginDiploWithHumanEspionageResult>(host, &AfterCvDiplomacyAI_DoBeginDiploWithHumanEspionageResult);CivRegisterReplace<CivHooks::CvDiplomacyAI_DoBeginDiploWithHumanEspionageResult>(host, &ReplaceCvDiplomacyAI_DoBeginDiploWithHumanEspionageResult);

Code

16278/// Initiate diplo screen after the player has clicked on the notification to threaten the thief.16279void CvDiplomacyAI::DoBeginDiploWithHumanEspionageResult()16280{16281	if(!GC.getGame().isOption(GAMEOPTION_ALWAYS_WAR) && !IsAtWar(GC.getGame().getActivePlayer()))16282	{16283#if defined(MOD_API_EXTENSIONS) && defined(MOD_DIPLOMACY_NO_LEADERHEADS)16284		if (MOD_DIPLOMACY_NO_LEADERHEADS) {16285			CvPreGame::pushGameType(GAME_NETWORK_MULTIPLAYER);16286		}16287#endif16288				16289#if defined(MOD_DIPLOMACY_STFU)16290		DisplayAILeaderMessage(GetPlayer()->GetID(), DIPLO_UI_STATE_CONFRONT_YOU_KILLED_MY_SPY, DIPLO_MESSAGE_CONFRONT_YOU_KILLED_MY_SPY, GC.getGame().getActivePlayer(), LEADERHEAD_ANIM_NEUTRAL_HELLO);16291#else16292		LeaderheadAnimationTypes eAnimation = LEADERHEAD_ANIM_NEUTRAL_HELLO;16293		const char* szText = GetDiploStringForMessage(DIPLO_MESSAGE_CONFRONT_YOU_KILLED_MY_SPY, GC.getGame().getActivePlayer());16294		gDLL->GameplayDiplomacyAILeaderMessage(GetPlayer()->GetID(), DIPLO_UI_STATE_CONFRONT_YOU_KILLED_MY_SPY, szText, eAnimation);16295#endif16296	}16297}

Calls

Called by