Bazaar developer reference

CvPlayer::GetHappiness() const

Defined in
CvPlayer.cpp, line 11501
Class
CvPlayer
Hook name
CivHooks::CvPlayer_GetHappiness

Hooks

static bool BeforeCvPlayer_GetHappiness(const CvPlayer* self, int& result);static void AfterCvPlayer_GetHappiness(const CvPlayer* self, int& result);static int ReplaceCvPlayer_GetHappiness(int (*original)(const CvPlayer*), const CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_GetHappiness>(host, &BeforeCvPlayer_GetHappiness);CivRegisterAfter<CivHooks::CvPlayer_GetHappiness>(host, &AfterCvPlayer_GetHappiness);CivRegisterReplace<CivHooks::CvPlayer_GetHappiness>(host, &ReplaceCvPlayer_GetHappiness);

Code

11500/// How much Happiness we have11501int CvPlayer::GetHappiness() const11502{11503	return m_iHappiness;11504}

Calls

Called by