Bazaar developer reference

CvAIOperation::GetEnemy() const

Defined in
CvAIOperation.cpp, line 136
Class
CvAIOperation
Hook name
CivHooks::CvAIOperation_GetEnemy

Hooks

static bool BeforeCvAIOperation_GetEnemy(const CvAIOperation* self, PlayerTypes& result);static void AfterCvAIOperation_GetEnemy(const CvAIOperation* self, PlayerTypes& result);static PlayerTypes ReplaceCvAIOperation_GetEnemy(PlayerTypes (*original)(const CvAIOperation*), const CvAIOperation* self);CivRegisterBefore<CivHooks::CvAIOperation_GetEnemy>(host, &BeforeCvAIOperation_GetEnemy);CivRegisterAfter<CivHooks::CvAIOperation_GetEnemy>(host, &AfterCvAIOperation_GetEnemy);CivRegisterReplace<CivHooks::CvAIOperation_GetEnemy>(host, &ReplaceCvAIOperation_GetEnemy);

Code

135/// Retrieve player conducting operation136PlayerTypes CvAIOperation::GetEnemy() const137{138	return m_eEnemy;139}

Called by