Bazaar developer reference

CvPlayer::GetHappinessPerXPopulation() const

Defined in
CvPlayer.cpp, line 13050
Class
CvPlayer
Hook name
CivHooks::CvPlayer_GetHappinessPerXPopulation

Hooks

static bool BeforeCvPlayer_GetHappinessPerXPopulation(const CvPlayer* self, int& result);static void AfterCvPlayer_GetHappinessPerXPopulation(const CvPlayer* self, int& result);static int ReplaceCvPlayer_GetHappinessPerXPopulation(int (*original)(const CvPlayer*), const CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_GetHappinessPerXPopulation>(host, &BeforeCvPlayer_GetHappinessPerXPopulation);CivRegisterAfter<CivHooks::CvPlayer_GetHappinessPerXPopulation>(host, &AfterCvPlayer_GetHappinessPerXPopulation);CivRegisterReplace<CivHooks::CvPlayer_GetHappinessPerXPopulation>(host, &ReplaceCvPlayer_GetHappinessPerXPopulation);

Code

13049/// How much Happiness are we getting from large cities?13050int CvPlayer::GetHappinessPerXPopulation() const13051{13052	return m_iHappinessPerXPopulation;13053}

Called by