Bazaar developer reference

CvReplayInfo::getPlayerDifficulty(int) const

Defined in
CvReplayInfo.cpp, line 289
Class
CvReplayInfo
Hook name
CivHooks::CvReplayInfo_getPlayerDifficulty

Hooks

static bool BeforeCvReplayInfo_getPlayerDifficulty(const CvReplayInfo* self, int iPlayer, HandicapTypes& result);static void AfterCvReplayInfo_getPlayerDifficulty(const CvReplayInfo* self, int iPlayer, HandicapTypes& result);static HandicapTypes ReplaceCvReplayInfo_getPlayerDifficulty(HandicapTypes (*original)(const CvReplayInfo*, int), const CvReplayInfo* self, int iPlayer);CivRegisterBefore<CivHooks::CvReplayInfo_getPlayerDifficulty>(host, &BeforeCvReplayInfo_getPlayerDifficulty);CivRegisterAfter<CivHooks::CvReplayInfo_getPlayerDifficulty>(host, &AfterCvReplayInfo_getPlayerDifficulty);CivRegisterReplace<CivHooks::CvReplayInfo_getPlayerDifficulty>(host, &ReplaceCvReplayInfo_getPlayerDifficulty);

Code

289HandicapTypes CvReplayInfo::getPlayerDifficulty(int iPlayer) const290{291	if(iPlayer >= 0 && iPlayer < (int)m_listPlayerInfo.size())292	{293		return m_listPlayerInfo[iPlayer].m_eDifficulty;294	}295296	return NO_HANDICAP;297}

Calls

Called by