Bazaar developer reference

CvGame::isDestroyedCityName(CvString &) const

Defined in
CvGame.cpp, line 7540
Class
CvGame
Hook name
CivHooks::CvGame_isDestroyedCityName

Hooks

static bool BeforeCvGame_isDestroyedCityName(const CvGame* self, CvString& szName, bool& result);static void AfterCvGame_isDestroyedCityName(const CvGame* self, CvString& szName, bool& result);static bool ReplaceCvGame_isDestroyedCityName(bool (*original)(const CvGame*, CvString&), const CvGame* self, CvString& szName);CivRegisterBefore<CivHooks::CvGame_isDestroyedCityName>(host, &BeforeCvGame_isDestroyedCityName);CivRegisterAfter<CivHooks::CvGame_isDestroyedCityName>(host, &AfterCvGame_isDestroyedCityName);CivRegisterReplace<CivHooks::CvGame_isDestroyedCityName>(host, &ReplaceCvGame_isDestroyedCityName);

Code

7540bool CvGame::isDestroyedCityName(CvString& szName) const7541{7542	std::vector<CvString>::const_iterator it;7543	for(it = m_aszDestroyedCities.begin(); it != m_aszDestroyedCities.end(); ++it)7544	{7545		if(*it == szName)7546		{7547			return true;7548		}7549	}75507551	return false;7552}

Calls

Called by