Bazaar developer reference

CvPlayer::getGreatScientistsCreated(bool) const

Defined in
CvPlayer.cpp, line 13962
Class
CvPlayer
Hook name
CivHooks::CvPlayer_getGreatScientistsCreated

Hooks

static bool BeforeCvPlayer_getGreatScientistsCreated(const CvPlayer* self, bool bExcludeFree, int& result);static void AfterCvPlayer_getGreatScientistsCreated(const CvPlayer* self, bool bExcludeFree, int& result);static int ReplaceCvPlayer_getGreatScientistsCreated(int (*original)(const CvPlayer*, bool), const CvPlayer* self, bool bExcludeFree);CivRegisterBefore<CivHooks::CvPlayer_getGreatScientistsCreated>(host, &BeforeCvPlayer_getGreatScientistsCreated);CivRegisterAfter<CivHooks::CvPlayer_getGreatScientistsCreated>(host, &AfterCvPlayer_getGreatScientistsCreated);CivRegisterReplace<CivHooks::CvPlayer_getGreatScientistsCreated>(host, &ReplaceCvPlayer_getGreatScientistsCreated);

Code

13962int CvPlayer::getGreatScientistsCreated(bool bExcludeFree) const13963{13964	int iCount = m_iGreatScientistsCreated;13965	if (bExcludeFree) iCount -= m_iFreeGreatScientistsCreated;13966	return iCount;13967}

Called by