Bazaar developer reference

CvPlayer::isHalfSpecialistUnhappiness() const

Defined in
CvPlayer.cpp, line 15705
Class
CvPlayer
Hook name
CivHooks::CvPlayer_isHalfSpecialistUnhappiness

Hooks

static bool BeforeCvPlayer_isHalfSpecialistUnhappiness(const CvPlayer* self, bool& result);static void AfterCvPlayer_isHalfSpecialistUnhappiness(const CvPlayer* self, bool& result);static bool ReplaceCvPlayer_isHalfSpecialistUnhappiness(bool (*original)(const CvPlayer*), const CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_isHalfSpecialistUnhappiness>(host, &BeforeCvPlayer_isHalfSpecialistUnhappiness);CivRegisterAfter<CivHooks::CvPlayer_isHalfSpecialistUnhappiness>(host, &AfterCvPlayer_isHalfSpecialistUnhappiness);CivRegisterReplace<CivHooks::CvPlayer_isHalfSpecialistUnhappiness>(host, &ReplaceCvPlayer_isHalfSpecialistUnhappiness);

Code

15705bool CvPlayer::isHalfSpecialistUnhappiness() const15706{15707	return (getHalfSpecialistUnhappinessCount() > 0);15708}

Calls

Called by