Bazaar developer reference

CvPolicyEntry::GetFreeUnitsPopulationPercent() const

Defined in
CvPolicyClasses.cpp, line 1234
Class
CvPolicyEntry
Hook name
CivHooks::CvPolicyEntry_GetFreeUnitsPopulationPercent

Hooks

static bool BeforeCvPolicyEntry_GetFreeUnitsPopulationPercent(const CvPolicyEntry* self, int& result);static void AfterCvPolicyEntry_GetFreeUnitsPopulationPercent(const CvPolicyEntry* self, int& result);static int ReplaceCvPolicyEntry_GetFreeUnitsPopulationPercent(int (*original)(const CvPolicyEntry*), const CvPolicyEntry* self);CivRegisterBefore<CivHooks::CvPolicyEntry_GetFreeUnitsPopulationPercent>(host, &BeforeCvPolicyEntry_GetFreeUnitsPopulationPercent);CivRegisterAfter<CivHooks::CvPolicyEntry_GetFreeUnitsPopulationPercent>(host, &AfterCvPolicyEntry_GetFreeUnitsPopulationPercent);CivRegisterReplace<CivHooks::CvPolicyEntry_GetFreeUnitsPopulationPercent>(host, &ReplaceCvPolicyEntry_GetFreeUnitsPopulationPercent);

Code

1233/// Number of free upkeep units based on population size1234int CvPolicyEntry::GetFreeUnitsPopulationPercent() const1235{1236	return m_iFreeUnitsPopulationPercent;1237}