CvGame::changeNumGameTurnActive(int, const std::string &)
- Defined in
- CvGame.cpp, line 4816
- Class
- CvGame
- Hook name
CivHooks::CvGame_changeNumGameTurnActive
Hooks
static bool BeforeCvGame_changeNumGameTurnActive(CvGame* self, int iChange, const std::string& why);static void AfterCvGame_changeNumGameTurnActive(CvGame* self, int iChange, const std::string& why);static void ReplaceCvGame_changeNumGameTurnActive(void (*original)(CvGame*, int, const std::string&), CvGame* self, int iChange, const std::string& why);CivRegisterBefore<CivHooks::CvGame_changeNumGameTurnActive>(host, &BeforeCvGame_changeNumGameTurnActive);CivRegisterAfter<CivHooks::CvGame_changeNumGameTurnActive>(host, &AfterCvGame_changeNumGameTurnActive);CivRegisterReplace<CivHooks::CvGame_changeNumGameTurnActive>(host, &ReplaceCvGame_changeNumGameTurnActive);
Code
4816void CvGame::changeNumGameTurnActive(int iChange, const std::string& why)4817{4818 char changeBuf[8] = {0};4819 char activeBuf[8] = {0};4820 sprintf_s(changeBuf, "%d", iChange);4821 sprintf_s(activeBuf, "%d", getNumGameTurnActive());4822 std::string output = "changeNumGameTurnActive(";4823 output += changeBuf;4824 output += ") m_iNumActive=";4825 output += activeBuf;4826 output += " : " + why;4827 gDLL->netMessageDebugLog(output);4828 CvAssert(getNumGameTurnActive() >= 0);4829}
Calls
- CvGame::getNumGameTurnActive()
- CvGlobals::getDLLIFace()
ICvEngineUtility1::netMessageDebugLogsprintf_sstd::basic_string::basic_stringstd::basic_string::operator+=std::basic_string::operator+=std::operator+