Bazaar developer reference

CvUnitEntry::GetMinAreaSize() const

Defined in
CvUnitClasses.cpp, line 561
Class
CvUnitEntry
Hook name
CivHooks::CvUnitEntry_GetMinAreaSize

Hooks

static bool BeforeCvUnitEntry_GetMinAreaSize(const CvUnitEntry* self, int& result);static void AfterCvUnitEntry_GetMinAreaSize(const CvUnitEntry* self, int& result);static int ReplaceCvUnitEntry_GetMinAreaSize(int (*original)(const CvUnitEntry*), const CvUnitEntry* self);CivRegisterBefore<CivHooks::CvUnitEntry_GetMinAreaSize>(host, &BeforeCvUnitEntry_GetMinAreaSize);CivRegisterAfter<CivHooks::CvUnitEntry_GetMinAreaSize>(host, &AfterCvUnitEntry_GetMinAreaSize);CivRegisterReplace<CivHooks::CvUnitEntry_GetMinAreaSize>(host, &ReplaceCvUnitEntry_GetMinAreaSize);

Code

560/// Required Plot count of the CvArea this City belongs to (Usually used for Water Units to prevent building them on tiny lakes and such)561int CvUnitEntry::GetMinAreaSize() const562{563	return m_iMinAreaSize;564}

Called by