Bazaar developer reference

CvGame::getHandicapInfo() const

Defined in
CvGame.cpp, line 5753
Class
CvGame
Hook name
CivHooks::CvGame_getHandicapInfo

Hooks

static bool BeforeCvGame_getHandicapInfo(const CvGame* self, CvHandicapInfo*& result);static void AfterCvGame_getHandicapInfo(const CvGame* self, CvHandicapInfo*& result);static CvHandicapInfo& ReplaceCvGame_getHandicapInfo(CvHandicapInfo& (*original)(const CvGame*), const CvGame* self);CivRegisterBefore<CivHooks::CvGame_getHandicapInfo>(host, &BeforeCvGame_getHandicapInfo);CivRegisterAfter<CivHooks::CvGame_getHandicapInfo>(host, &AfterCvGame_getHandicapInfo);CivRegisterReplace<CivHooks::CvGame_getHandicapInfo>(host, &ReplaceCvGame_getHandicapInfo);

Code

5753CvHandicapInfo& CvGame::getHandicapInfo() const5754{5755	CvHandicapInfo* pkHandicapInfo = GC.getHandicapInfo(getHandicapType());5756	if(pkHandicapInfo == NULL)5757	{5758		const char* szError = "ERROR: Game does not contain valid handicap!!";5759		GC.LogMessage(szError);5760		CvAssertMsg(false, szError);5761	}57625763#pragma warning ( push )5764#pragma warning ( disable : 6011 ) // Dereferencing NULL pointer5765	return *pkHandicapInfo;5766#pragma warning ( pop )5767}

Calls

Called by

42 functions in 18 files