Bazaar developer reference

CvPlayer::getUnit(int) const

Defined in
CvPlayer.cpp, line 21859
Class
CvPlayer
Hook name
CivHooks::CvPlayer_getUnit

Hooks

static bool BeforeCvPlayer_getUnit(const CvPlayer* self, int iID, const CvUnit*& result);static void AfterCvPlayer_getUnit(const CvPlayer* self, int iID, const CvUnit*& result);static const CvUnit* ReplaceCvPlayer_getUnit(const CvUnit* (*original)(const CvPlayer*, int), const CvPlayer* self, int iID);CivRegisterBefore<CivHooks::CvPlayer_getUnit>(host, &BeforeCvPlayer_getUnit);CivRegisterAfter<CivHooks::CvPlayer_getUnit>(host, &AfterCvPlayer_getUnit);CivRegisterReplace<CivHooks::CvPlayer_getUnit>(host, &ReplaceCvPlayer_getUnit);

Code

21859const CvUnit* CvPlayer::getUnit(int iID) const21860{21861	return (m_units.GetAt(iID));21862}

Calls