Bazaar developer reference

CvPlayer::getSiphonLuxuryCount(PlayerTypes) const

Defined in
CvPlayer.cpp, line 19969
Class
CvPlayer
Hook name
CivHooks::CvPlayer_getSiphonLuxuryCount

Hooks

static bool BeforeCvPlayer_getSiphonLuxuryCount(const CvPlayer* self, PlayerTypes eFromPlayer, int& result);static void AfterCvPlayer_getSiphonLuxuryCount(const CvPlayer* self, PlayerTypes eFromPlayer, int& result);static int ReplaceCvPlayer_getSiphonLuxuryCount(int (*original)(const CvPlayer*, PlayerTypes), const CvPlayer* self, PlayerTypes eFromPlayer);CivRegisterBefore<CivHooks::CvPlayer_getSiphonLuxuryCount>(host, &BeforeCvPlayer_getSiphonLuxuryCount);CivRegisterAfter<CivHooks::CvPlayer_getSiphonLuxuryCount>(host, &AfterCvPlayer_getSiphonLuxuryCount);CivRegisterReplace<CivHooks::CvPlayer_getSiphonLuxuryCount>(host, &ReplaceCvPlayer_getSiphonLuxuryCount);

Code

19968/// Do we get copies of each type of luxury connected by eFromPlayer?19969int CvPlayer::getSiphonLuxuryCount(PlayerTypes eFromPlayer) const19970{19971	CvAssertMsg(eFromPlayer >= 0, "eFromPlayer is expected to be non-negative (invalid Index)");19972	CvAssertMsg(eFromPlayer < MAX_PLAYERS, "eFromPlayer is expected to be within maximum bounds (invalid Index)");1997319974	return m_aiSiphonLuxuryCount[eFromPlayer];19975}

Calls

Called by