Bazaar developer reference

CvPlayer::getFirstAIOperation()

Defined in
CvPlayer.cpp, line 21958
Class
CvPlayer
Hook name
CivHooks::CvPlayer_getFirstAIOperation

Hooks

static bool BeforeCvPlayer_getFirstAIOperation(CvPlayer* self, CvAIOperation*& result);static void AfterCvPlayer_getFirstAIOperation(CvPlayer* self, CvAIOperation*& result);static CvAIOperation* ReplaceCvPlayer_getFirstAIOperation(CvAIOperation* (*original)(CvPlayer*), CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_getFirstAIOperation>(host, &BeforeCvPlayer_getFirstAIOperation);CivRegisterAfter<CivHooks::CvPlayer_getFirstAIOperation>(host, &AfterCvPlayer_getFirstAIOperation);CivRegisterReplace<CivHooks::CvPlayer_getFirstAIOperation>(host, &ReplaceCvPlayer_getFirstAIOperation);

Code

21958CvAIOperation* CvPlayer::getFirstAIOperation()21959{21960	CvAIOperation* rtnValue = NULL;2196121962	m_CurrentOperation = m_AIOperations.begin();21963	if(m_CurrentOperation != m_AIOperations.end())21964	{21965		rtnValue = m_CurrentOperation->second;21966	}21967	return rtnValue;21968}

Calls

Called by