Bazaar developer reference

CvUnit::IsGreatGeneral() const

Defined in
CvUnit.cpp, line 18929
Class
CvUnit
Hook name
CivHooks::CvUnit_IsGreatGeneral

Hooks

static bool BeforeCvUnit_IsGreatGeneral(const CvUnit* self, bool& result);static void AfterCvUnit_IsGreatGeneral(const CvUnit* self, bool& result);static bool ReplaceCvUnit_IsGreatGeneral(bool (*original)(const CvUnit*), const CvUnit* self);CivRegisterBefore<CivHooks::CvUnit_IsGreatGeneral>(host, &BeforeCvUnit_IsGreatGeneral);CivRegisterAfter<CivHooks::CvUnit_IsGreatGeneral>(host, &AfterCvUnit_IsGreatGeneral);CivRegisterReplace<CivHooks::CvUnit_IsGreatGeneral>(host, &ReplaceCvUnit_IsGreatGeneral);

Code

18929bool CvUnit::IsGreatGeneral() const18930{18931	VALIDATE_OBJECT18932	return GetGreatGeneralCount() > 0;18933}

Calls

Called by