Bazaar developer reference

CvPlayer::getAIOperation(int)

Defined in
CvPlayer.cpp, line 21987
Class
CvPlayer
Hook name
CivHooks::CvPlayer_getAIOperation_with_int

Hooks

static bool BeforeCvPlayer_getAIOperation_with_int(CvPlayer* self, int iID, CvAIOperation*& result);static void AfterCvPlayer_getAIOperation_with_int(CvPlayer* self, int iID, CvAIOperation*& result);static CvAIOperation* ReplaceCvPlayer_getAIOperation_with_int(CvAIOperation* (*original)(CvPlayer*, int), CvPlayer* self, int iID);CivRegisterBefore<CivHooks::CvPlayer_getAIOperation_with_int>(host, &BeforeCvPlayer_getAIOperation_with_int);CivRegisterAfter<CivHooks::CvPlayer_getAIOperation_with_int>(host, &AfterCvPlayer_getAIOperation_with_int);CivRegisterReplace<CivHooks::CvPlayer_getAIOperation_with_int>(host, &ReplaceCvPlayer_getAIOperation_with_int);

Code

21987CvAIOperation* CvPlayer::getAIOperation(int iID)21988{21989	std::map<int, CvAIOperation*>::iterator it = m_AIOperations.find(iID);21990	if(it != m_AIOperations.end())21991	{21992		return it->second;21993	}21994	return 0;21995}

Calls

Called by