Bazaar developer reference

CvUnit::GetActivityType() const

Defined in
CvUnit.cpp, line 22300
Class
CvUnit
Hook name
CivHooks::CvUnit_GetActivityType

Hooks

static bool BeforeCvUnit_GetActivityType(const CvUnit* self, ActivityTypes& result);static void AfterCvUnit_GetActivityType(const CvUnit* self, ActivityTypes& result);static ActivityTypes ReplaceCvUnit_GetActivityType(ActivityTypes (*original)(const CvUnit*), const CvUnit* self);CivRegisterBefore<CivHooks::CvUnit_GetActivityType>(host, &BeforeCvUnit_GetActivityType);CivRegisterAfter<CivHooks::CvUnit_GetActivityType>(host, &AfterCvUnit_GetActivityType);CivRegisterReplace<CivHooks::CvUnit_GetActivityType>(host, &ReplaceCvUnit_GetActivityType);

Code

22300ActivityTypes CvUnit::GetActivityType() const22301{22302	VALIDATE_OBJECT22303	return m_eActivityType;22304}

Calls

Called by