Bazaar developer reference

CvPlayer::getAIOperation(int) const

Defined in
CvPlayer.cpp, line 21947
Class
CvPlayer
Hook name
CivHooks::CvPlayer_getAIOperation

Hooks

static bool BeforeCvPlayer_getAIOperation(const CvPlayer* self, int iID, const CvAIOperation*& result);static void AfterCvPlayer_getAIOperation(const CvPlayer* self, int iID, const CvAIOperation*& result);static const CvAIOperation* ReplaceCvPlayer_getAIOperation(const CvAIOperation* (*original)(const CvPlayer*, int), const CvPlayer* self, int iID);CivRegisterBefore<CivHooks::CvPlayer_getAIOperation>(host, &BeforeCvPlayer_getAIOperation);CivRegisterAfter<CivHooks::CvPlayer_getAIOperation>(host, &AfterCvPlayer_getAIOperation);CivRegisterReplace<CivHooks::CvPlayer_getAIOperation>(host, &ReplaceCvPlayer_getAIOperation);

Code

21947const CvAIOperation* CvPlayer::getAIOperation(int iID) const21948{21949	std::map<int, CvAIOperation*>::const_iterator it = m_AIOperations.find(iID);21950	if(it != m_AIOperations.end())21951	{21952		return it->second;21953	}21954	return 0;21955}

Calls