Bazaar developer reference

CvUnit::Automate(AutomateTypes)

Defined in
CvUnit.cpp, line 3932
Class
CvUnit
Hook name
CivHooks::CvUnit_Automate

Hooks

static bool BeforeCvUnit_Automate(CvUnit* self, AutomateTypes eAutomate);static void AfterCvUnit_Automate(CvUnit* self, AutomateTypes eAutomate);static void ReplaceCvUnit_Automate(void (*original)(CvUnit*, AutomateTypes), CvUnit* self, AutomateTypes eAutomate);CivRegisterBefore<CivHooks::CvUnit_Automate>(host, &BeforeCvUnit_Automate);CivRegisterAfter<CivHooks::CvUnit_Automate>(host, &AfterCvUnit_Automate);CivRegisterReplace<CivHooks::CvUnit_Automate>(host, &ReplaceCvUnit_Automate);

Code

3932void CvUnit::Automate(AutomateTypes eAutomate)3933{3934	VALIDATE_OBJECT3935	if(!CanAutomate(eAutomate))3936	{3937		return;3938	}39393940	SetAutomateType(eAutomate);3941}

Calls

Called by