Bazaar developer reference

CvGame::goldenAgeLength() const

Defined in
CvGame.cpp, line 4095
Class
CvGame
Hook name
CivHooks::CvGame_goldenAgeLength

Hooks

static bool BeforeCvGame_goldenAgeLength(const CvGame* self, int& result);static void AfterCvGame_goldenAgeLength(const CvGame* self, int& result);static int ReplaceCvGame_goldenAgeLength(int (*original)(const CvGame*), const CvGame* self);CivRegisterBefore<CivHooks::CvGame_goldenAgeLength>(host, &BeforeCvGame_goldenAgeLength);CivRegisterAfter<CivHooks::CvGame_goldenAgeLength>(host, &AfterCvGame_goldenAgeLength);CivRegisterReplace<CivHooks::CvGame_goldenAgeLength>(host, &ReplaceCvGame_goldenAgeLength);

Code

4095int CvGame::goldenAgeLength() const4096{4097	int iLength;40984099	iLength = /*10*/ GC.getGOLDEN_AGE_LENGTH();41004101	iLength *= getGameSpeedInfo().getGoldenAgePercent();4102	iLength /= 100;41034104	return iLength;4105}

Calls

Called by