CvGame::changeMaxTurns(int)
- Defined in
- CvGame.cpp, line 4523
- Class
- CvGame
- Hook name
CivHooks::CvGame_changeMaxTurns
Hooks
static bool BeforeCvGame_changeMaxTurns(CvGame* self, int iChange);static void AfterCvGame_changeMaxTurns(CvGame* self, int iChange);static void ReplaceCvGame_changeMaxTurns(void (*original)(CvGame*, int), CvGame* self, int iChange);CivRegisterBefore<CivHooks::CvGame_changeMaxTurns>(host, &BeforeCvGame_changeMaxTurns);CivRegisterAfter<CivHooks::CvGame_changeMaxTurns>(host, &AfterCvGame_changeMaxTurns);CivRegisterReplace<CivHooks::CvGame_changeMaxTurns>(host, &ReplaceCvGame_changeMaxTurns);
Code
4523void CvGame::changeMaxTurns(int iChange)4524{4525 setMaxTurns(getMaxTurns() + iChange);4526}