Bazaar developer reference

CvGlobals::getActionInfo(int)

Defined in
CvGlobals.cpp, line 3411
Class
CvGlobals
Hook name
CivHooks::CvGlobals_getActionInfo_with_int

Hooks

static bool BeforeCvGlobals_getActionInfo_with_int(CvGlobals* self, int i, CvActionInfo*& result);static void AfterCvGlobals_getActionInfo_with_int(CvGlobals* self, int i, CvActionInfo*& result);static CvActionInfo* ReplaceCvGlobals_getActionInfo_with_int(CvActionInfo* (*original)(CvGlobals*, int), CvGlobals* self, int i);CivRegisterBefore<CivHooks::CvGlobals_getActionInfo_with_int>(host, &BeforeCvGlobals_getActionInfo_with_int);CivRegisterAfter<CivHooks::CvGlobals_getActionInfo_with_int>(host, &AfterCvGlobals_getActionInfo_with_int);CivRegisterReplace<CivHooks::CvGlobals_getActionInfo_with_int>(host, &ReplaceCvGlobals_getActionInfo_with_int);

Code

3411CvActionInfo* CvGlobals::getActionInfo(int i)3412{3413	CvAssertMsg(i < getNumActionInfos(), "Index out of bounds");3414	CvAssertMsg(i > -1, "Index out of bounds");3415	if(i > -1 && i < (int)m_paActionInfo.size())3416		return m_paActionInfo[i];3417	else3418		return NULL;3419}

Calls

Called by