Bazaar developer reference

CvUnit::getSubUnitCount() const

Defined in
CvUnit.cpp, line 21132
Class
CvUnit
Hook name
CivHooks::CvUnit_getSubUnitCount

Hooks

static bool BeforeCvUnit_getSubUnitCount(const CvUnit* self, int& result);static void AfterCvUnit_getSubUnitCount(const CvUnit* self, int& result);static int ReplaceCvUnit_getSubUnitCount(int (*original)(const CvUnit*), const CvUnit* self);CivRegisterBefore<CivHooks::CvUnit_getSubUnitCount>(host, &BeforeCvUnit_getSubUnitCount);CivRegisterAfter<CivHooks::CvUnit_getSubUnitCount>(host, &AfterCvUnit_getSubUnitCount);CivRegisterReplace<CivHooks::CvUnit_getSubUnitCount>(host, &ReplaceCvUnit_getSubUnitCount);

Code

21132int CvUnit::getSubUnitCount() const21133{21134	VALIDATE_OBJECT21135	return getUnitInfo().GetGroupSize();21136}

Calls