Bazaar developer reference

CvEventLog::GetPlot(int) const

Defined in
CvEventLog.cpp, line 193
Class
CvEventLog
Hook name
CivHooks::CvEventLog_GetPlot

Hooks

static bool BeforeCvEventLog_GetPlot(const CvEventLog* self, int iZeroBasedIndex, CvPlot*& result);static void AfterCvEventLog_GetPlot(const CvEventLog* self, int iZeroBasedIndex, CvPlot*& result);static CvPlot* ReplaceCvEventLog_GetPlot(CvPlot* (*original)(const CvEventLog*, int), const CvEventLog* self, int iZeroBasedIndex);CivRegisterBefore<CivHooks::CvEventLog_GetPlot>(host, &BeforeCvEventLog_GetPlot);CivRegisterAfter<CivHooks::CvEventLog_GetPlot>(host, &AfterCvEventLog_GetPlot);CivRegisterReplace<CivHooks::CvEventLog_GetPlot>(host, &ReplaceCvEventLog_GetPlot);

Code

193CvPlot* CvEventLog::GetPlot(int iZeroBasedIndex) const194{195	int iRealIndex = (m_iEventsBeginIndex + iZeroBasedIndex) % m_aEvents.size();196	return GC.getMap().plot(m_aEvents[iRealIndex].m_iX, m_aEvents[iRealIndex].m_iY);197}

Calls

Called by