Bazaar developer reference

CvArea::getNumRevealedTiles(TeamTypes) const

Defined in
CvArea.cpp, line 491
Class
CvArea
Hook name
CivHooks::CvArea_getNumRevealedTiles

Hooks

static bool BeforeCvArea_getNumRevealedTiles(const CvArea* self, TeamTypes eIndex, int& result);static void AfterCvArea_getNumRevealedTiles(const CvArea* self, TeamTypes eIndex, int& result);static int ReplaceCvArea_getNumRevealedTiles(int (*original)(const CvArea*, TeamTypes), const CvArea* self, TeamTypes eIndex);CivRegisterBefore<CivHooks::CvArea_getNumRevealedTiles>(host, &BeforeCvArea_getNumRevealedTiles);CivRegisterAfter<CivHooks::CvArea_getNumRevealedTiles>(host, &AfterCvArea_getNumRevealedTiles);CivRegisterReplace<CivHooks::CvArea_getNumRevealedTiles>(host, &ReplaceCvArea_getNumRevealedTiles);

Code

490//	Get the number of revealed tiles (plots) for the specified team491int CvArea::getNumRevealedTiles(TeamTypes eIndex) const492{493	CvAssertMsg(eIndex >= 0, "eIndex is expected to be >= 0");494	CvAssertMsg(eIndex < MAX_PLAYERS, "eIndex is expected to be < MAX_PLAYERS");495	if(eIndex < 0 || eIndex >= MAX_PLAYERS) return 0;496497	return m_aiNumRevealedTiles[eIndex];498}

Called by