CvDiplomacyAI::DoBeginDiploWithHumanInDiscuss()
- Defined in
- CvDiplomacyAI.cpp, line 16300
- Class
- CvDiplomacyAI
- Hook name
CivHooks::CvDiplomacyAI_DoBeginDiploWithHumanInDiscuss
Hooks
static bool BeforeCvDiplomacyAI_DoBeginDiploWithHumanInDiscuss(CvDiplomacyAI* self);static void AfterCvDiplomacyAI_DoBeginDiploWithHumanInDiscuss(CvDiplomacyAI* self);static void ReplaceCvDiplomacyAI_DoBeginDiploWithHumanInDiscuss(void (*original)(CvDiplomacyAI*), CvDiplomacyAI* self);CivRegisterBefore<CivHooks::CvDiplomacyAI_DoBeginDiploWithHumanInDiscuss>(host, &BeforeCvDiplomacyAI_DoBeginDiploWithHumanInDiscuss);CivRegisterAfter<CivHooks::CvDiplomacyAI_DoBeginDiploWithHumanInDiscuss>(host, &AfterCvDiplomacyAI_DoBeginDiploWithHumanInDiscuss);CivRegisterReplace<CivHooks::CvDiplomacyAI_DoBeginDiploWithHumanInDiscuss>(host, &ReplaceCvDiplomacyAI_DoBeginDiploWithHumanInDiscuss);
Code
16299/// Initiate diplo screen after the player has clicked on the notification that involves intrigue16300void CvDiplomacyAI::DoBeginDiploWithHumanInDiscuss()16301{16302 if(!GC.getGame().isOption(GAMEOPTION_ALWAYS_WAR))16303 {16304 LeaderheadAnimationTypes eAnimation = LEADERHEAD_ANIM_NEUTRAL_HELLO;16305 const char* szText = GetGreetHumanMessage(eAnimation);1630616307#if defined(MOD_API_EXTENSIONS) && defined(MOD_DIPLOMACY_NO_LEADERHEADS)16308 if (MOD_DIPLOMACY_NO_LEADERHEADS) {16309 CvPreGame::pushGameType(GAME_NETWORK_MULTIPLAYER);16310 }16311#endif16312 16313// CUSTOMLOG("STFU@%i: DoBeginDiploWithHumanInDiscuss for player %i", GC.getGame().getGameTurn(), GetPlayer()->GetID());16314 gDLL->GameplayDiplomacyAILeaderMessage(GetPlayer()->GetID(), DIPLO_UI_STATE_DISCUSS_HUMAN_INVOKED, szText, eAnimation);16315 DIPLOMACYLOG(m_pPlayer->GetID(), szText, GetPlayer()->GetID(), DIPLO_UI_STATE_DISCUSS_HUMAN_INVOKED, DIPLO_MESSAGE_GREETING_NEUTRAL_HELLO);16316 }16317}
Calls
- CustomMods::isAPI_PLAYER_LOGS()
- CustomMods::isDIPLOMACY_NO_LEADERHEADS()
- CvDiplomacyAI::GetGreetHumanMessage(LeaderheadAnimationTypes &)
- CvDiplomacyAI::GetPlayer()
- CvGame::isOption(GameOptionTypes) const
- CvGlobals::getDLLIFace()
- CvGlobals::getGame()
- CvPlayer::AddDiplomacyEvent(const char *, PlayerTypes, int, int, int, int)
- CvPlayer::GetID() const
- CvPlayerAI::getPlayer(PlayerTypes)
- CvPreGame::pushGameType(GameTypes)
CvString::CvStringCvString::formatFILogFile::MsgFILogFileMgr::GetInstanceFILogFileMgr::GetLogICvEngineUtility1::GameplayDiplomacyAILeaderMessagestd::basic_string::c_str