Bazaar developer reference

CvGame::getGameSpeedInfo() const

Defined in
CvGame.cpp, line 7067
Class
CvGame
Hook name
CivHooks::CvGame_getGameSpeedInfo

Hooks

static bool BeforeCvGame_getGameSpeedInfo(const CvGame* self, CvGameSpeedInfo*& result);static void AfterCvGame_getGameSpeedInfo(const CvGame* self, CvGameSpeedInfo*& result);static CvGameSpeedInfo& ReplaceCvGame_getGameSpeedInfo(CvGameSpeedInfo& (*original)(const CvGame*), const CvGame* self);CivRegisterBefore<CivHooks::CvGame_getGameSpeedInfo>(host, &BeforeCvGame_getGameSpeedInfo);CivRegisterAfter<CivHooks::CvGame_getGameSpeedInfo>(host, &AfterCvGame_getGameSpeedInfo);CivRegisterReplace<CivHooks::CvGame_getGameSpeedInfo>(host, &ReplaceCvGame_getGameSpeedInfo);

Code

7067CvGameSpeedInfo& CvGame::getGameSpeedInfo() const7068{7069	CvGameSpeedInfo* pkGameSpeedInfo = GC.getGameSpeedInfo(getGameSpeedType());7070	if(pkGameSpeedInfo == NULL)7071	{7072		const char* szError = "ERROR: Game does not contain valid game speed!!";7073		GC.LogMessage(szError);7074		CvAssertMsg(false, szError);7075	}70767077#pragma warning ( push )7078#pragma warning ( disable : 6011 ) // Dereferencing NULL pointer7079	return *pkGameSpeedInfo;7080#pragma warning ( pop )7081}

Calls

Called by

95 functions in 18 files