Bazaar developer reference

CvUnitEntry::GetCommandType() const

Defined in
CvUnitClasses.cpp, line 1061
Class
CvUnitEntry
Hook name
CivHooks::CvUnitEntry_GetCommandType

Hooks

static bool BeforeCvUnitEntry_GetCommandType(const CvUnitEntry* self, int& result);static void AfterCvUnitEntry_GetCommandType(const CvUnitEntry* self, int& result);static int ReplaceCvUnitEntry_GetCommandType(int (*original)(const CvUnitEntry*), const CvUnitEntry* self);CivRegisterBefore<CivHooks::CvUnitEntry_GetCommandType>(host, &BeforeCvUnitEntry_GetCommandType);CivRegisterAfter<CivHooks::CvUnitEntry_GetCommandType>(host, &AfterCvUnitEntry_GetCommandType);CivRegisterReplace<CivHooks::CvUnitEntry_GetCommandType>(host, &ReplaceCvUnitEntry_GetCommandType);

Code

1060/// Return unit's current command1061int CvUnitEntry::GetCommandType() const1062{1063	return m_iCommandType;1064}