Bazaar developer reference

CvPlayer::IsMinorScienceAllies() const

Defined in
CvPlayer.cpp, line 16088
Class
CvPlayer
Hook name
CivHooks::CvPlayer_IsMinorScienceAllies

Hooks

static bool BeforeCvPlayer_IsMinorScienceAllies(const CvPlayer* self, bool& result);static void AfterCvPlayer_IsMinorScienceAllies(const CvPlayer* self, bool& result);static bool ReplaceCvPlayer_IsMinorScienceAllies(bool (*original)(const CvPlayer*), const CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_IsMinorScienceAllies>(host, &BeforeCvPlayer_IsMinorScienceAllies);CivRegisterAfter<CivHooks::CvPlayer_IsMinorScienceAllies>(host, &AfterCvPlayer_IsMinorScienceAllies);CivRegisterReplace<CivHooks::CvPlayer_IsMinorScienceAllies>(host, &ReplaceCvPlayer_IsMinorScienceAllies);

Code

16088bool CvPlayer::IsMinorScienceAllies() const16089{16090	return GetMinorScienceAlliesCount() > 0;16091}

Calls

Called by