Bazaar developer reference

CvEventLog::IsLogFull()

Defined in
CvEventLog.cpp, line 224
Class
CvEventLog
Hook name
CivHooks::CvEventLog_IsLogFull

Hooks

static bool BeforeCvEventLog_IsLogFull(CvEventLog* self, bool& result);static void AfterCvEventLog_IsLogFull(CvEventLog* self, bool& result);static bool ReplaceCvEventLog_IsLogFull(bool (*original)(CvEventLog*), CvEventLog* self);CivRegisterBefore<CivHooks::CvEventLog_IsLogFull>(host, &BeforeCvEventLog_IsLogFull);CivRegisterAfter<CivHooks::CvEventLog_IsLogFull>(host, &AfterCvEventLog_IsLogFull);CivRegisterReplace<CivHooks::CvEventLog_IsLogFull>(host, &ReplaceCvEventLog_IsLogFull);

Code

224bool CvEventLog::IsLogFull()225{226	int iAdjustedEndIndex = m_iEventsEndIndex + 1;227	if (iAdjustedEndIndex >= (int)m_aEvents.size())228	{229		iAdjustedEndIndex = 0;230	}231232	if (iAdjustedEndIndex == m_iEventsBeginIndex)233	{234		return true;235	}236	else237	{238		return false;239	}240}

Calls

Called by