Bazaar developer reference

CvPolicyEntry::GetFreeFoodBox() const

Defined in
CvPolicyClasses.cpp, line 1443
Class
CvPolicyEntry
Hook name
CivHooks::CvPolicyEntry_GetFreeFoodBox

Hooks

static bool BeforeCvPolicyEntry_GetFreeFoodBox(const CvPolicyEntry* self, int& result);static void AfterCvPolicyEntry_GetFreeFoodBox(const CvPolicyEntry* self, int& result);static int ReplaceCvPolicyEntry_GetFreeFoodBox(int (*original)(const CvPolicyEntry*), const CvPolicyEntry* self);CivRegisterBefore<CivHooks::CvPolicyEntry_GetFreeFoodBox>(host, &BeforeCvPolicyEntry_GetFreeFoodBox);CivRegisterAfter<CivHooks::CvPolicyEntry_GetFreeFoodBox>(host, &AfterCvPolicyEntry_GetFreeFoodBox);CivRegisterReplace<CivHooks::CvPolicyEntry_GetFreeFoodBox>(host, &ReplaceCvPolicyEntry_GetFreeFoodBox);

Code

1442/// Amount of free food newly-founded Cities receive1443int CvPolicyEntry::GetFreeFoodBox() const1444{1445	return m_iFreeFoodBox;1446}

Called by