Bazaar developer reference

CvTacticalAI::GetLogFileName(CvString &) const

Defined in
CvTacticalAI.cpp, line 11704
Class
CvTacticalAI
Hook name
CivHooks::CvTacticalAI_GetLogFileName

Hooks

static bool BeforeCvTacticalAI_GetLogFileName(const CvTacticalAI* self, CvString& playerName, CvString& result);static void AfterCvTacticalAI_GetLogFileName(const CvTacticalAI* self, CvString& playerName, CvString& result);static CvString ReplaceCvTacticalAI_GetLogFileName(CvString (*original)(const CvTacticalAI*, CvString&), const CvTacticalAI* self, CvString& playerName);CivRegisterBefore<CivHooks::CvTacticalAI_GetLogFileName>(host, &BeforeCvTacticalAI_GetLogFileName);CivRegisterAfter<CivHooks::CvTacticalAI_GetLogFileName>(host, &AfterCvTacticalAI_GetLogFileName);CivRegisterReplace<CivHooks::CvTacticalAI_GetLogFileName>(host, &ReplaceCvTacticalAI_GetLogFileName);

Code

11703/// Build log filename11704CvString CvTacticalAI::GetLogFileName(CvString& playerName) const11705{11706	CvString strLogName;1170711708	// Open the log file11709	if(GC.getPlayerAndCityAILogSplit())11710	{11711		strLogName = "PlayerTacticalAILog_" + playerName + ".csv";11712	}11713	else11714	{11715		strLogName = "PlayerTacticalAILog.csv";11716	}1171711718	return strLogName;11719}

Calls

Called by