Bazaar developer reference

CvCityEmphases::IsEmphasize(EmphasizeTypes)

Defined in
CvEmphasisClasses.cpp, line 189
Class
CvCityEmphases
Hook name
CivHooks::CvCityEmphases_IsEmphasize

Hooks

static bool BeforeCvCityEmphases_IsEmphasize(CvCityEmphases* self, EmphasizeTypes eIndex, bool& result);static void AfterCvCityEmphases_IsEmphasize(CvCityEmphases* self, EmphasizeTypes eIndex, bool& result);static bool ReplaceCvCityEmphases_IsEmphasize(bool (*original)(CvCityEmphases*, EmphasizeTypes), CvCityEmphases* self, EmphasizeTypes eIndex);CivRegisterBefore<CivHooks::CvCityEmphases_IsEmphasize>(host, &BeforeCvCityEmphases_IsEmphasize);CivRegisterAfter<CivHooks::CvCityEmphases_IsEmphasize>(host, &AfterCvCityEmphases_IsEmphasize);CivRegisterReplace<CivHooks::CvCityEmphases_IsEmphasize>(host, &ReplaceCvCityEmphases_IsEmphasize);

Code

188/// Is this emphasis turned on?189bool CvCityEmphases::IsEmphasize(EmphasizeTypes eIndex)190{191	CvAssertMsg(eIndex >= 0, "eIndex is expected to be non-negative (invalid Index)");192	CvAssertMsg(eIndex < GC.getNumEmphasisInfos(), "eIndex is expected to be within maximum bounds (invalid Index)");193	CvAssertMsg(m_pbEmphasize != NULL, "m_pbEmphasize is not expected to be equal with NULL");194195	if(!m_pbEmphasize) return false;196197	return m_pbEmphasize[eIndex];198}

Called by