Bazaar developer reference

CvPlayer::getNextAIOperation()

Defined in
CvPlayer.cpp, line 21971
Class
CvPlayer
Hook name
CivHooks::CvPlayer_getNextAIOperation

Hooks

static bool BeforeCvPlayer_getNextAIOperation(CvPlayer* self, CvAIOperation*& result);static void AfterCvPlayer_getNextAIOperation(CvPlayer* self, CvAIOperation*& result);static CvAIOperation* ReplaceCvPlayer_getNextAIOperation(CvAIOperation* (*original)(CvPlayer*), CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_getNextAIOperation>(host, &BeforeCvPlayer_getNextAIOperation);CivRegisterAfter<CivHooks::CvPlayer_getNextAIOperation>(host, &AfterCvPlayer_getNextAIOperation);CivRegisterReplace<CivHooks::CvPlayer_getNextAIOperation>(host, &ReplaceCvPlayer_getNextAIOperation);

Code

21971CvAIOperation* CvPlayer::getNextAIOperation()21972{21973	CvAIOperation* rtnValue = NULL;2197421975	if(m_CurrentOperation != m_AIOperations.end())21976	{21977		++m_CurrentOperation;21978		if(m_CurrentOperation != m_AIOperations.end())21979		{21980			rtnValue = m_CurrentOperation->second;21981		}21982	}21983	return rtnValue;21984}

Calls

Called by