Bazaar developer reference

CvUnitEntry::SetCommandType(int)

Defined in
CvUnitClasses.cpp, line 1067
Class
CvUnitEntry
Hook name
CivHooks::CvUnitEntry_SetCommandType

Hooks

static bool BeforeCvUnitEntry_SetCommandType(CvUnitEntry* self, int iNewType);static void AfterCvUnitEntry_SetCommandType(CvUnitEntry* self, int iNewType);static void ReplaceCvUnitEntry_SetCommandType(void (*original)(CvUnitEntry*, int), CvUnitEntry* self, int iNewType);CivRegisterBefore<CivHooks::CvUnitEntry_SetCommandType>(host, &BeforeCvUnitEntry_SetCommandType);CivRegisterAfter<CivHooks::CvUnitEntry_SetCommandType>(host, &AfterCvUnitEntry_SetCommandType);CivRegisterReplace<CivHooks::CvUnitEntry_SetCommandType>(host, &ReplaceCvUnitEntry_SetCommandType);

Code

1066/// Set unit's current command1067void CvUnitEntry::SetCommandType(int iNewType)1068{1069	m_iCommandType = iNewType;1070}