Bazaar developer reference

CvReplayInfo::getPlayerCivAdjective(int) const

Defined in
CvReplayInfo.cpp, line 329
Class
CvReplayInfo
Hook name
CivHooks::CvReplayInfo_getPlayerCivAdjective

Hooks

static bool BeforeCvReplayInfo_getPlayerCivAdjective(const CvReplayInfo* self, int iPlayer, const char*& result);static void AfterCvReplayInfo_getPlayerCivAdjective(const CvReplayInfo* self, int iPlayer, const char*& result);static const char* ReplaceCvReplayInfo_getPlayerCivAdjective(const char* (*original)(const CvReplayInfo*, int), const CvReplayInfo* self, int iPlayer);CivRegisterBefore<CivHooks::CvReplayInfo_getPlayerCivAdjective>(host, &BeforeCvReplayInfo_getPlayerCivAdjective);CivRegisterAfter<CivHooks::CvReplayInfo_getPlayerCivAdjective>(host, &AfterCvReplayInfo_getPlayerCivAdjective);CivRegisterReplace<CivHooks::CvReplayInfo_getPlayerCivAdjective>(host, &ReplaceCvReplayInfo_getPlayerCivAdjective);

Code

329const char* CvReplayInfo::getPlayerCivAdjective(int iPlayer) const330{331	if(iPlayer >= 0 && iPlayer < (int)m_listPlayerInfo.size())332	{333		return m_listPlayerInfo[iPlayer].m_strCustomCivilizationAdjective;334	}335336	return NULL;337}

Calls

Called by