CvGameLeagues::LogLeagueMessage(CvString &)
- Defined in
- CvVotingClasses.cpp, line 7362
- Class
- CvGameLeagues
- Hook name
CivHooks::CvGameLeagues_LogLeagueMessage
Hooks
static bool BeforeCvGameLeagues_LogLeagueMessage(CvGameLeagues* self, CvString& kMessage);static void AfterCvGameLeagues_LogLeagueMessage(CvGameLeagues* self, CvString& kMessage);static void ReplaceCvGameLeagues_LogLeagueMessage(void (*original)(CvGameLeagues*, CvString&), CvGameLeagues* self, CvString& kMessage);CivRegisterBefore<CivHooks::CvGameLeagues_LogLeagueMessage>(host, &BeforeCvGameLeagues_LogLeagueMessage);CivRegisterAfter<CivHooks::CvGameLeagues_LogLeagueMessage>(host, &AfterCvGameLeagues_LogLeagueMessage);CivRegisterReplace<CivHooks::CvGameLeagues_LogLeagueMessage>(host, &ReplaceCvGameLeagues_LogLeagueMessage);
Code
7362void CvGameLeagues::LogLeagueMessage(CvString& kMessage)7363{7364 if(GC.getLogging())7365 {7366 CvString strOutBuf;7367 CvString strBaseString;7368 FILogFile* pLog;73697370 pLog = LOGFILEMGR.GetLog(GetLogFileName(), FILogFile::kDontTimeStamp);73717372 // Get the leading info for this line7373 strBaseString.Format("%03d, %d", GC.getGame().getElapsedGameTurns(), GC.getGame().getGameTurnYear());7374 strOutBuf = strBaseString + kMessage;7375 pLog->Msg(strOutBuf);7376 }7377}
Calls
- CvGame::getElapsedGameTurns() const
- CvGame::getGameTurnYear()
- CvGameLeagues::GetLogFileName() const
- CvGlobals::getGame()
- CvGlobals::getLogging()
CvString::CvStringCvString::FormatCvString::operator const char *CvString::operator=FILogFile::MsgFILogFileMgr::GetInstanceFILogFileMgr::GetLogstd::operator+
Called by
- CvGameLeagues::LogLeagueFounded(PlayerTypes)
- CvGameLeagues::LogSpecialSession(LeagueSpecialSessionTypes)
- CvLeague::LogProposalResolved(CvEnactProposal *)
- CvLeague::LogProposalResolved(CvRepealProposal *)
- CvLeagueAI::LogVoteChoiceCommitted(CvEnactProposal *, int, int)
- CvLeagueAI::LogVoteChoiceCommitted(CvRepealProposal *, int, int)
- CvLeagueAI::LogVoteChoiceConsidered(CvEnactProposal *, int, int)
- CvLeagueAI::LogVoteChoiceConsidered(CvRepealProposal *, int, int)