Bazaar developer reference

CvCity::isRevealed(TeamTypes, bool) const

Defined in
CvCity.cpp, line 11245
Class
CvCity
Hook name
CivHooks::CvCity_isRevealed

Hooks

static bool BeforeCvCity_isRevealed(const CvCity* self, TeamTypes eIndex, bool bDebug, bool& result);static void AfterCvCity_isRevealed(const CvCity* self, TeamTypes eIndex, bool bDebug, bool& result);static bool ReplaceCvCity_isRevealed(bool (*original)(const CvCity*, TeamTypes, bool), const CvCity* self, TeamTypes eIndex, bool bDebug);CivRegisterBefore<CivHooks::CvCity_isRevealed>(host, &BeforeCvCity_isRevealed);CivRegisterAfter<CivHooks::CvCity_isRevealed>(host, &AfterCvCity_isRevealed);CivRegisterReplace<CivHooks::CvCity_isRevealed>(host, &ReplaceCvCity_isRevealed);

Code

11245bool CvCity::isRevealed(TeamTypes eIndex, bool bDebug) const11246{11247	VALIDATE_OBJECT11248	if(bDebug && GC.getGame().isDebugMode())11249	{11250		return true;11251	}11252	else11253	{11254		CvAssertMsg(eIndex >= 0, "eIndex expected to be >= 0");11255		CvAssertMsg(eIndex < MAX_TEAMS, "eIndex expected to be < MAX_TEAMS");1125611257		return m_abRevealed[eIndex];11258	}11259}

Calls

Called by