Bazaar developer reference

CvWorldInfo::getNumCitiesUnhappinessPercent() const

Defined in
CvInfos.cpp, line 6021
Class
CvWorldInfo
Hook name
CivHooks::CvWorldInfo_getNumCitiesUnhappinessPercent

Hooks

static bool BeforeCvWorldInfo_getNumCitiesUnhappinessPercent(const CvWorldInfo* self, int& result);static void AfterCvWorldInfo_getNumCitiesUnhappinessPercent(const CvWorldInfo* self, int& result);static int ReplaceCvWorldInfo_getNumCitiesUnhappinessPercent(int (*original)(const CvWorldInfo*), const CvWorldInfo* self);CivRegisterBefore<CivHooks::CvWorldInfo_getNumCitiesUnhappinessPercent>(host, &BeforeCvWorldInfo_getNumCitiesUnhappinessPercent);CivRegisterAfter<CivHooks::CvWorldInfo_getNumCitiesUnhappinessPercent>(host, &AfterCvWorldInfo_getNumCitiesUnhappinessPercent);CivRegisterReplace<CivHooks::CvWorldInfo_getNumCitiesUnhappinessPercent>(host, &ReplaceCvWorldInfo_getNumCitiesUnhappinessPercent);

Code

6021int CvWorldInfo::getNumCitiesUnhappinessPercent() const6022{6023	return m_iNumCitiesUnhappinessPercent;6024}

Called by