Bazaar developer reference

CvCity::GetNoOccupiedUnhappinessCount() const

Defined in
CvCity.cpp, line 9156
Class
CvCity
Hook name
CivHooks::CvCity_GetNoOccupiedUnhappinessCount

Hooks

static bool BeforeCvCity_GetNoOccupiedUnhappinessCount(const CvCity* self, int& result);static void AfterCvCity_GetNoOccupiedUnhappinessCount(const CvCity* self, int& result);static int ReplaceCvCity_GetNoOccupiedUnhappinessCount(int (*original)(const CvCity*), const CvCity* self);CivRegisterBefore<CivHooks::CvCity_GetNoOccupiedUnhappinessCount>(host, &BeforeCvCity_GetNoOccupiedUnhappinessCount);CivRegisterAfter<CivHooks::CvCity_GetNoOccupiedUnhappinessCount>(host, &AfterCvCity_GetNoOccupiedUnhappinessCount);CivRegisterReplace<CivHooks::CvCity_GetNoOccupiedUnhappinessCount>(host, &ReplaceCvCity_GetNoOccupiedUnhappinessCount);

Code

9155/// Does this city not produce occupied Unhappiness?9156int CvCity::GetNoOccupiedUnhappinessCount() const9157{9158	VALIDATE_OBJECT9159	return m_iNoOccupiedUnhappinessCount;9160}

Calls

Called by