Bazaar developer reference

CvPolicyEntry::GetHappinessPerXPopulation() const

Defined in
CvPolicyClasses.cpp, line 1264
Class
CvPolicyEntry
Hook name
CivHooks::CvPolicyEntry_GetHappinessPerXPopulation

Hooks

static bool BeforeCvPolicyEntry_GetHappinessPerXPopulation(const CvPolicyEntry* self, int& result);static void AfterCvPolicyEntry_GetHappinessPerXPopulation(const CvPolicyEntry* self, int& result);static int ReplaceCvPolicyEntry_GetHappinessPerXPopulation(int (*original)(const CvPolicyEntry*), const CvPolicyEntry* self);CivRegisterBefore<CivHooks::CvPolicyEntry_GetHappinessPerXPopulation>(host, &BeforeCvPolicyEntry_GetHappinessPerXPopulation);CivRegisterAfter<CivHooks::CvPolicyEntry_GetHappinessPerXPopulation>(host, &AfterCvPolicyEntry_GetHappinessPerXPopulation);CivRegisterReplace<CivHooks::CvPolicyEntry_GetHappinessPerXPopulation>(host, &ReplaceCvPolicyEntry_GetHappinessPerXPopulation);

Code

1263/// Happiness from large cities1264int CvPolicyEntry::GetHappinessPerXPopulation() const1265{1266	return m_iHappinessPerXPopulation;1267}

Called by