Bazaar developer reference

CvCity::isEverOwned(PlayerTypes) const

Defined in
CvCity.cpp, line 11226
Class
CvCity
Hook name
CivHooks::CvCity_isEverOwned

Hooks

static bool BeforeCvCity_isEverOwned(const CvCity* self, PlayerTypes eIndex, bool& result);static void AfterCvCity_isEverOwned(const CvCity* self, PlayerTypes eIndex, bool& result);static bool ReplaceCvCity_isEverOwned(bool (*original)(const CvCity*, PlayerTypes), const CvCity* self, PlayerTypes eIndex);CivRegisterBefore<CivHooks::CvCity_isEverOwned>(host, &BeforeCvCity_isEverOwned);CivRegisterAfter<CivHooks::CvCity_isEverOwned>(host, &AfterCvCity_isEverOwned);CivRegisterReplace<CivHooks::CvCity_isEverOwned>(host, &ReplaceCvCity_isEverOwned);

Code

11226bool CvCity::isEverOwned(PlayerTypes eIndex) const11227{11228	VALIDATE_OBJECT11229	CvAssertMsg(eIndex >= 0, "eIndex expected to be >= 0");11230	CvAssertMsg(eIndex < MAX_PLAYERS, "eIndex expected to be < MAX_PLAYERS");11231	return m_abEverOwned[eIndex];11232}

Calls

Called by