Bazaar developer reference

CvPlayerEspionage::IsSchmoozing(uint)

Defined in
CvEspionageClasses.cpp, line 1996
Class
CvPlayerEspionage
Hook name
CivHooks::CvPlayerEspionage_IsSchmoozing

Hooks

static bool BeforeCvPlayerEspionage_IsSchmoozing(CvPlayerEspionage* self, uint uiSpyIndex, bool& result);static void AfterCvPlayerEspionage_IsSchmoozing(CvPlayerEspionage* self, uint uiSpyIndex, bool& result);static bool ReplaceCvPlayerEspionage_IsSchmoozing(bool (*original)(CvPlayerEspionage*, uint), CvPlayerEspionage* self, uint uiSpyIndex);CivRegisterBefore<CivHooks::CvPlayerEspionage_IsSchmoozing>(host, &BeforeCvPlayerEspionage_IsSchmoozing);CivRegisterAfter<CivHooks::CvPlayerEspionage_IsSchmoozing>(host, &AfterCvPlayerEspionage_IsSchmoozing);CivRegisterReplace<CivHooks::CvPlayerEspionage_IsSchmoozing>(host, &ReplaceCvPlayerEspionage_IsSchmoozing);

Code

1996bool CvPlayerEspionage::IsSchmoozing (uint uiSpyIndex)1997{1998	CvAssertMsg(uiSpyIndex < m_aSpyList.size(), "iSpyIndex is out of bounds");1999	if(uiSpyIndex >= m_aSpyList.size())2000	{2001		return false;2002	}20032004	if (m_aSpyList[uiSpyIndex].m_eSpyState == SPY_STATE_SCHMOOZE)2005	{2006		return true;2007	}2008	else2009	{2010		return false;2011	}2012}

Calls

Called by