Bazaar developer reference

CvPlayerEspionage::LogEspionageMsg(CvString &)

Defined in
CvEspionageClasses.cpp, line 4131
Class
CvPlayerEspionage
Hook name
CivHooks::CvPlayerEspionage_LogEspionageMsg

Hooks

static bool BeforeCvPlayerEspionage_LogEspionageMsg(CvPlayerEspionage* self, CvString& strMsg);static void AfterCvPlayerEspionage_LogEspionageMsg(CvPlayerEspionage* self, CvString& strMsg);static void ReplaceCvPlayerEspionage_LogEspionageMsg(void (*original)(CvPlayerEspionage*, CvString&), CvPlayerEspionage* self, CvString& strMsg);CivRegisterBefore<CivHooks::CvPlayerEspionage_LogEspionageMsg>(host, &BeforeCvPlayerEspionage_LogEspionageMsg);CivRegisterAfter<CivHooks::CvPlayerEspionage_LogEspionageMsg>(host, &AfterCvPlayerEspionage_LogEspionageMsg);CivRegisterReplace<CivHooks::CvPlayerEspionage_LogEspionageMsg>(host, &ReplaceCvPlayerEspionage_LogEspionageMsg);

Code

4131void CvPlayerEspionage::LogEspionageMsg(CvString& strMsg)4132{4133	if(GC.getLogging())4134	{4135		CvString strOutBuf;4136		CvString strBaseString;4137		FILogFile* pLog;41384139		pLog = LOGFILEMGR.GetLog(GetLogFileName(), FILogFile::kDontTimeStamp);41404141		// Get the leading info for this line4142		strBaseString.Format("%03d,", GC.getGame().getElapsedGameTurns());4143		strBaseString += m_pPlayer->getCivilizationShortDescription();4144		strBaseString += ",";4145		strOutBuf = strBaseString + strMsg;4146		pLog->Msg(strOutBuf);4147	}4148}

Calls

Called by