Bazaar developer reference

CvNotifications::IsArrayFull()

Defined in
CvNotifications.cpp, line 2121
Class
CvNotifications
Hook name
CivHooks::CvNotifications_IsArrayFull

Hooks

static bool BeforeCvNotifications_IsArrayFull(CvNotifications* self, bool& result);static void AfterCvNotifications_IsArrayFull(CvNotifications* self, bool& result);static bool ReplaceCvNotifications_IsArrayFull(bool (*original)(CvNotifications*), CvNotifications* self);CivRegisterBefore<CivHooks::CvNotifications_IsArrayFull>(host, &BeforeCvNotifications_IsArrayFull);CivRegisterAfter<CivHooks::CvNotifications_IsArrayFull>(host, &AfterCvNotifications_IsArrayFull);CivRegisterReplace<CivHooks::CvNotifications_IsArrayFull>(host, &ReplaceCvNotifications_IsArrayFull);

Code

2121bool CvNotifications::IsArrayFull()2122{2123	int iAdjustedEndIndex = m_iNotificationsEndIndex + 1;2124	if(iAdjustedEndIndex >= (int)m_aNotifications.size())2125	{2126		iAdjustedEndIndex = 0;2127	}21282129	if(iAdjustedEndIndex == m_iNotificationsBeginIndex)2130	{2131		return true;2132	}2133	else2134	{2135		return false;2136	}2137}

Calls

Called by