Bazaar developer reference

CvPlayer::getCity(int) const

Defined in
CvPlayer.cpp, line 21789
Class
CvPlayer
Hook name
CivHooks::CvPlayer_getCity_with_int_const

Hooks

static bool BeforeCvPlayer_getCity_with_int_const(const CvPlayer* self, int iID, const CvCity*& result);static void AfterCvPlayer_getCity_with_int_const(const CvPlayer* self, int iID, const CvCity*& result);static const CvCity* ReplaceCvPlayer_getCity_with_int_const(const CvCity* (*original)(const CvPlayer*, int), const CvPlayer* self, int iID);CivRegisterBefore<CivHooks::CvPlayer_getCity_with_int_const>(host, &BeforeCvPlayer_getCity_with_int_const);CivRegisterAfter<CivHooks::CvPlayer_getCity_with_int_const>(host, &AfterCvPlayer_getCity_with_int_const);CivRegisterReplace<CivHooks::CvPlayer_getCity_with_int_const>(host, &ReplaceCvPlayer_getCity_with_int_const);

Code

21789const CvCity* CvPlayer::getCity(int iID) const21790{21791	return(m_cities.GetAt(iID));21792}

Calls

Called by