Bazaar developer reference

CvAIOperation::SetOwner(PlayerTypes)

Defined in
CvAIOperation.cpp, line 130
Class
CvAIOperation
Hook name
CivHooks::CvAIOperation_SetOwner

Hooks

static bool BeforeCvAIOperation_SetOwner(CvAIOperation* self, PlayerTypes ePlayer);static void AfterCvAIOperation_SetOwner(CvAIOperation* self, PlayerTypes ePlayer);static void ReplaceCvAIOperation_SetOwner(void (*original)(CvAIOperation*, PlayerTypes), CvAIOperation* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvAIOperation_SetOwner>(host, &BeforeCvAIOperation_SetOwner);CivRegisterAfter<CivHooks::CvAIOperation_SetOwner>(host, &AfterCvAIOperation_SetOwner);CivRegisterReplace<CivHooks::CvAIOperation_SetOwner>(host, &ReplaceCvAIOperation_SetOwner);

Code

129/// Set player conducting operation130void CvAIOperation::SetOwner(PlayerTypes ePlayer)131{132	m_eOwner = ePlayer;133}