CvCityStrategyAI::GetLogFileName(CvString &, CvString &) const
- Defined in
- CvCityStrategyAI.cpp, line 599
- Class
- CvCityStrategyAI
- Hook name
CivHooks::CvCityStrategyAI_GetLogFileName
Hooks
static bool BeforeCvCityStrategyAI_GetLogFileName(const CvCityStrategyAI* self, CvString& playerName, CvString& cityName, CvString& result);static void AfterCvCityStrategyAI_GetLogFileName(const CvCityStrategyAI* self, CvString& playerName, CvString& cityName, CvString& result);static CvString ReplaceCvCityStrategyAI_GetLogFileName(CvString (*original)(const CvCityStrategyAI*, CvString&, CvString&), const CvCityStrategyAI* self, CvString& playerName, CvString& cityName);CivRegisterBefore<CivHooks::CvCityStrategyAI_GetLogFileName>(host, &BeforeCvCityStrategyAI_GetLogFileName);CivRegisterAfter<CivHooks::CvCityStrategyAI_GetLogFileName>(host, &AfterCvCityStrategyAI_GetLogFileName);CivRegisterReplace<CivHooks::CvCityStrategyAI_GetLogFileName>(host, &ReplaceCvCityStrategyAI_GetLogFileName);
Code
598/// Build log filename599CvString CvCityStrategyAI::GetLogFileName(CvString& playerName, CvString& cityName) const600{601 CvString strLogName;602603 // Open the log file604 if(GC.getPlayerAndCityAILogSplit())605 {606 strLogName = "CityStrategyAILog_" + playerName + "_" + cityName + ".csv";607 }608 else609 {610 strLogName = "CityStrategyAILog.csv";611 }612613 return strLogName;614}
Calls
- CvGlobals::getPlayerAndCityAILogSplit()
CvString::CvStringCvString::CvStringCvString::operator=CvString::operator=std::operator+std::operator+std::operator+
Called by
- CvBuildingProductionAI::LogPossibleBuilds()
- CvCityStrategyAI::LogCityProduction(CvCityBuildable, bool)
- CvCityStrategyAI::LogFlavors(FlavorTypes)
- CvCityStrategyAI::LogHurry(HurryTypes, int, int, int)
- CvCityStrategyAI::LogPossibleBuilds()
- CvCityStrategyAI::LogSpecializationChange(CitySpecializationTypes)
- CvCityStrategyAI::LogStrategy(AICityStrategyTypes, bool)
- CvProcessProductionAI::LogPossibleBuilds()
- CvProjectProductionAI::LogPossibleBuilds()
- CvUnitProductionAI::LogPossibleBuilds(UnitAITypes)