Bazaar developer reference

CvUnit::IsAutomated() const

Defined in
CvUnit.cpp, line 22356
Class
CvUnit
Hook name
CivHooks::CvUnit_IsAutomated

Hooks

static bool BeforeCvUnit_IsAutomated(const CvUnit* self, bool& result);static void AfterCvUnit_IsAutomated(const CvUnit* self, bool& result);static bool ReplaceCvUnit_IsAutomated(bool (*original)(const CvUnit*), const CvUnit* self);CivRegisterBefore<CivHooks::CvUnit_IsAutomated>(host, &BeforeCvUnit_IsAutomated);CivRegisterAfter<CivHooks::CvUnit_IsAutomated>(host, &AfterCvUnit_IsAutomated);CivRegisterReplace<CivHooks::CvUnit_IsAutomated>(host, &ReplaceCvUnit_IsAutomated);

Code

22356bool CvUnit::IsAutomated() const22357{22358	VALIDATE_OBJECT22359	return (GetAutomateType() != NO_AUTOMATE);22360}

Calls

Called by