Bazaar developer reference

CvPlot::getPlayerCityRadiusCount(PlayerTypes) const

Defined in
CvPlot.cpp, line 8706
Class
CvPlot
Hook name
CivHooks::CvPlot_getPlayerCityRadiusCount

Hooks

static bool BeforeCvPlot_getPlayerCityRadiusCount(const CvPlot* self, PlayerTypes eIndex, int& result);static void AfterCvPlot_getPlayerCityRadiusCount(const CvPlot* self, PlayerTypes eIndex, int& result);static int ReplaceCvPlot_getPlayerCityRadiusCount(int (*original)(const CvPlot*, PlayerTypes), const CvPlot* self, PlayerTypes eIndex);CivRegisterBefore<CivHooks::CvPlot_getPlayerCityRadiusCount>(host, &BeforeCvPlot_getPlayerCityRadiusCount);CivRegisterAfter<CivHooks::CvPlot_getPlayerCityRadiusCount>(host, &AfterCvPlot_getPlayerCityRadiusCount);CivRegisterReplace<CivHooks::CvPlot_getPlayerCityRadiusCount>(host, &ReplaceCvPlot_getPlayerCityRadiusCount);

Code

8706int CvPlot::getPlayerCityRadiusCount(PlayerTypes eIndex) const8707{8708	CvAssertMsg(eIndex >= 0, "eIndex is expected to be non-negative (invalid Index)");8709	CvAssertMsg(eIndex < MAX_PLAYERS, "eIndex is expected to be within maximum bounds (invalid Index)");87108711	return m_aiPlayerCityRadiusCount[eIndex];8712}

Called by