Bazaar developer reference

CvPlayer::getUnit(int)

Defined in
CvPlayer.cpp, line 21865
Class
CvPlayer
Hook name
CivHooks::CvPlayer_getUnit_with_int

Hooks

static bool BeforeCvPlayer_getUnit_with_int(CvPlayer* self, int iID, CvUnit*& result);static void AfterCvPlayer_getUnit_with_int(CvPlayer* self, int iID, CvUnit*& result);static CvUnit* ReplaceCvPlayer_getUnit_with_int(CvUnit* (*original)(CvPlayer*, int), CvPlayer* self, int iID);CivRegisterBefore<CivHooks::CvPlayer_getUnit_with_int>(host, &BeforeCvPlayer_getUnit_with_int);CivRegisterAfter<CivHooks::CvPlayer_getUnit_with_int>(host, &AfterCvPlayer_getUnit_with_int);CivRegisterReplace<CivHooks::CvPlayer_getUnit_with_int>(host, &ReplaceCvPlayer_getUnit_with_int);

Code

21865CvUnit* CvPlayer::getUnit(int iID)21866{21867	return (m_units.GetAt(iID));21868}

Calls

Called by

171 functions in 19 files