Bazaar developer reference

CvPlayer::getGreatMerchantsCreated(bool) const

Defined in
CvPlayer.cpp, line 13947
Class
CvPlayer
Hook name
CivHooks::CvPlayer_getGreatMerchantsCreated

Hooks

static bool BeforeCvPlayer_getGreatMerchantsCreated(const CvPlayer* self, bool bExcludeFree, int& result);static void AfterCvPlayer_getGreatMerchantsCreated(const CvPlayer* self, bool bExcludeFree, int& result);static int ReplaceCvPlayer_getGreatMerchantsCreated(int (*original)(const CvPlayer*, bool), const CvPlayer* self, bool bExcludeFree);CivRegisterBefore<CivHooks::CvPlayer_getGreatMerchantsCreated>(host, &BeforeCvPlayer_getGreatMerchantsCreated);CivRegisterAfter<CivHooks::CvPlayer_getGreatMerchantsCreated>(host, &AfterCvPlayer_getGreatMerchantsCreated);CivRegisterReplace<CivHooks::CvPlayer_getGreatMerchantsCreated>(host, &ReplaceCvPlayer_getGreatMerchantsCreated);

Code

13947int CvPlayer::getGreatMerchantsCreated(bool bExcludeFree) const13948{13949	int iCount = m_iGreatMerchantsCreated;13950	if (bExcludeFree) iCount -= m_iFreeGreatMerchantsCreated;13951	return iCount;13952}

Called by