Bazaar developer reference

CvGame::getTurnYear(int)

Defined in
CvGame.cpp, line 4479
Class
CvGame
Hook name
CivHooks::CvGame_getTurnYear

Hooks

static bool BeforeCvGame_getTurnYear(CvGame* self, int iGameTurn, int& result);static void AfterCvGame_getTurnYear(CvGame* self, int iGameTurn, int& result);static int ReplaceCvGame_getTurnYear(int (*original)(CvGame*, int), CvGame* self, int iGameTurn);CivRegisterBefore<CivHooks::CvGame_getTurnYear>(host, &BeforeCvGame_getTurnYear);CivRegisterAfter<CivHooks::CvGame_getTurnYear>(host, &AfterCvGame_getTurnYear);CivRegisterReplace<CivHooks::CvGame_getTurnYear>(host, &ReplaceCvGame_getTurnYear);

Code

4479int CvGame::getTurnYear(int iGameTurn)4480{4481	// moved the body of this method to Game Core Utils so we have access for other games than the current one (replay screen in HOF)4482	return getTurnYearForGame(iGameTurn, getStartYear(), getCalendar(), getGameSpeedType());4483}

Calls

Called by