Bazaar developer reference

CvPlayer::isHalfSpecialistFood() const

Defined in
CvPlayer.cpp, line 15729
Class
CvPlayer
Hook name
CivHooks::CvPlayer_isHalfSpecialistFood

Hooks

static bool BeforeCvPlayer_isHalfSpecialistFood(const CvPlayer* self, bool& result);static void AfterCvPlayer_isHalfSpecialistFood(const CvPlayer* self, bool& result);static bool ReplaceCvPlayer_isHalfSpecialistFood(bool (*original)(const CvPlayer*), const CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_isHalfSpecialistFood>(host, &BeforeCvPlayer_isHalfSpecialistFood);CivRegisterAfter<CivHooks::CvPlayer_isHalfSpecialistFood>(host, &AfterCvPlayer_isHalfSpecialistFood);CivRegisterReplace<CivHooks::CvPlayer_isHalfSpecialistFood>(host, &ReplaceCvPlayer_isHalfSpecialistFood);

Code

15729bool CvPlayer::isHalfSpecialistFood() const15730{15731	return (getHalfSpecialistFoodCount() > 0);15732}

Calls

Called by