Bazaar developer reference

CvAIOperation::GetLogFileName(CvString &) const

Defined in
CvAIOperation.cpp, line 1509
Class
CvAIOperation
Hook name
CivHooks::CvAIOperation_GetLogFileName

Hooks

static bool BeforeCvAIOperation_GetLogFileName(const CvAIOperation* self, CvString& playerName, CvString& result);static void AfterCvAIOperation_GetLogFileName(const CvAIOperation* self, CvString& playerName, CvString& result);static CvString ReplaceCvAIOperation_GetLogFileName(CvString (*original)(const CvAIOperation*, CvString&), const CvAIOperation* self, CvString& playerName);CivRegisterBefore<CivHooks::CvAIOperation_GetLogFileName>(host, &BeforeCvAIOperation_GetLogFileName);CivRegisterAfter<CivHooks::CvAIOperation_GetLogFileName>(host, &AfterCvAIOperation_GetLogFileName);CivRegisterReplace<CivHooks::CvAIOperation_GetLogFileName>(host, &ReplaceCvAIOperation_GetLogFileName);

Code

1508/// Build log filename1509CvString CvAIOperation::GetLogFileName(CvString& playerName) const1510{1511	CvString strLogName;15121513	// Open the log file1514	if(GC.getPlayerAndCityAILogSplit())1515	{1516		strLogName = "OperationalAILog_" + playerName + ".csv";1517	}1518	else1519	{1520		strLogName = "OperationalAILog.csv";1521	}15221523	return strLogName;1524}

Calls

Called by