Bazaar developer reference

CvPlayer::incrementGreatMerchantsCreated(bool)

Defined in
CvPlayer.cpp, line 13955
Class
CvPlayer
Hook name
CivHooks::CvPlayer_incrementGreatMerchantsCreated

Hooks

static bool BeforeCvPlayer_incrementGreatMerchantsCreated(CvPlayer* self, bool bIsFree);static void AfterCvPlayer_incrementGreatMerchantsCreated(CvPlayer* self, bool bIsFree);static void ReplaceCvPlayer_incrementGreatMerchantsCreated(void (*original)(CvPlayer*, bool), CvPlayer* self, bool bIsFree);CivRegisterBefore<CivHooks::CvPlayer_incrementGreatMerchantsCreated>(host, &BeforeCvPlayer_incrementGreatMerchantsCreated);CivRegisterAfter<CivHooks::CvPlayer_incrementGreatMerchantsCreated>(host, &AfterCvPlayer_incrementGreatMerchantsCreated);CivRegisterReplace<CivHooks::CvPlayer_incrementGreatMerchantsCreated>(host, &ReplaceCvPlayer_incrementGreatMerchantsCreated);

Code

13955void CvPlayer::incrementGreatMerchantsCreated(bool bIsFree)13956{13957	m_iGreatMerchantsCreated++;13958	if (bIsFree) m_iFreeGreatMerchantsCreated++;13959}

Called by