Bazaar developer reference

CvGame::changeAIAutoPlay(int)

Defined in
CvGame.cpp, line 5044
Class
CvGame
Hook name
CivHooks::CvGame_changeAIAutoPlay

Hooks

static bool BeforeCvGame_changeAIAutoPlay(CvGame* self, int iChange);static void AfterCvGame_changeAIAutoPlay(CvGame* self, int iChange);static void ReplaceCvGame_changeAIAutoPlay(void (*original)(CvGame*, int), CvGame* self, int iChange);CivRegisterBefore<CivHooks::CvGame_changeAIAutoPlay>(host, &BeforeCvGame_changeAIAutoPlay);CivRegisterAfter<CivHooks::CvGame_changeAIAutoPlay>(host, &AfterCvGame_changeAIAutoPlay);CivRegisterReplace<CivHooks::CvGame_changeAIAutoPlay>(host, &ReplaceCvGame_changeAIAutoPlay);

Code

5044void CvGame::changeAIAutoPlay(int iChange)5045{5046	setAIAutoPlay(getAIAutoPlay() + iChange, m_eAIAutoPlayReturnPlayer);5047}

Calls

Called by