Bazaar developer reference

CvReplayInfo::isValidPlayer(int) const

Defined in
CvReplayInfo.cpp, line 244
Class
CvReplayInfo
Hook name
CivHooks::CvReplayInfo_isValidPlayer

Hooks

static bool BeforeCvReplayInfo_isValidPlayer(const CvReplayInfo* self, int i, bool& result);static void AfterCvReplayInfo_isValidPlayer(const CvReplayInfo* self, int i, bool& result);static bool ReplaceCvReplayInfo_isValidPlayer(bool (*original)(const CvReplayInfo*, int), const CvReplayInfo* self, int i);CivRegisterBefore<CivHooks::CvReplayInfo_isValidPlayer>(host, &BeforeCvReplayInfo_isValidPlayer);CivRegisterAfter<CivHooks::CvReplayInfo_isValidPlayer>(host, &AfterCvReplayInfo_isValidPlayer);CivRegisterReplace<CivHooks::CvReplayInfo_isValidPlayer>(host, &ReplaceCvReplayInfo_isValidPlayer);

Code

244bool CvReplayInfo::isValidPlayer(int i) const245{246	return (i >= 0 && i < (int)m_listPlayerInfo.size());247}

Calls