Bazaar developer reference

CvUnit::getSpecialUnitType() const

Defined in
CvUnit.cpp, line 11384
Class
CvUnit
Hook name
CivHooks::CvUnit_getSpecialUnitType

Hooks

static bool BeforeCvUnit_getSpecialUnitType(const CvUnit* self, SpecialUnitTypes& result);static void AfterCvUnit_getSpecialUnitType(const CvUnit* self, SpecialUnitTypes& result);static SpecialUnitTypes ReplaceCvUnit_getSpecialUnitType(SpecialUnitTypes (*original)(const CvUnit*), const CvUnit* self);CivRegisterBefore<CivHooks::CvUnit_getSpecialUnitType>(host, &BeforeCvUnit_getSpecialUnitType);CivRegisterAfter<CivHooks::CvUnit_getSpecialUnitType>(host, &AfterCvUnit_getSpecialUnitType);CivRegisterReplace<CivHooks::CvUnit_getSpecialUnitType>(host, &ReplaceCvUnit_getSpecialUnitType);

Code

11384SpecialUnitTypes CvUnit::getSpecialUnitType() const11385{11386	VALIDATE_OBJECT11387	return ((SpecialUnitTypes)(m_pUnitInfo->GetSpecialUnitType()));11388}

Calls

Called by