Bazaar developer reference

CvPlayer::getGreatArtistsCreated(bool) const

Defined in
CvPlayer.cpp, line 14008
Class
CvPlayer
Hook name
CivHooks::CvPlayer_getGreatArtistsCreated

Hooks

static bool BeforeCvPlayer_getGreatArtistsCreated(const CvPlayer* self, bool bExcludeFree, int& result);static void AfterCvPlayer_getGreatArtistsCreated(const CvPlayer* self, bool bExcludeFree, int& result);static int ReplaceCvPlayer_getGreatArtistsCreated(int (*original)(const CvPlayer*, bool), const CvPlayer* self, bool bExcludeFree);CivRegisterBefore<CivHooks::CvPlayer_getGreatArtistsCreated>(host, &BeforeCvPlayer_getGreatArtistsCreated);CivRegisterAfter<CivHooks::CvPlayer_getGreatArtistsCreated>(host, &AfterCvPlayer_getGreatArtistsCreated);CivRegisterReplace<CivHooks::CvPlayer_getGreatArtistsCreated>(host, &ReplaceCvPlayer_getGreatArtistsCreated);

Code

14008int CvPlayer::getGreatArtistsCreated(bool bExcludeFree) const14009{14010	int iCount = m_iGreatArtistsCreated;14011	if (bExcludeFree) iCount -= m_iFreeGreatArtistsCreated;14012	return iCount;14013}

Called by