Bazaar developer reference

CvUnitEntry::IsPurchaseOnly() const

Defined in
CvUnitClasses.cpp, line 521
Class
CvUnitEntry
Hook name
CivHooks::CvUnitEntry_IsPurchaseOnly

Hooks

static bool BeforeCvUnitEntry_IsPurchaseOnly(const CvUnitEntry* self, bool& result);static void AfterCvUnitEntry_IsPurchaseOnly(const CvUnitEntry* self, bool& result);static bool ReplaceCvUnitEntry_IsPurchaseOnly(bool (*original)(const CvUnitEntry*), const CvUnitEntry* self);CivRegisterBefore<CivHooks::CvUnitEntry_IsPurchaseOnly>(host, &BeforeCvUnitEntry_IsPurchaseOnly);CivRegisterAfter<CivHooks::CvUnitEntry_IsPurchaseOnly>(host, &AfterCvUnitEntry_IsPurchaseOnly);CivRegisterReplace<CivHooks::CvUnitEntry_IsPurchaseOnly>(host, &ReplaceCvUnitEntry_IsPurchaseOnly);

Code

520/// Do we need to purchase this unit (i.e. can't be built)?521bool CvUnitEntry::IsPurchaseOnly() const522{523	return m_bPurchaseOnly;524}

Called by