Bazaar developer reference

CvPlot::getInvisibleVisibilityCount(TeamTypes, InvisibleTypes) const

Defined in
CvPlot.cpp, line 10074
Class
CvPlot
Hook name
CivHooks::CvPlot_getInvisibleVisibilityCount

Hooks

static bool BeforeCvPlot_getInvisibleVisibilityCount(const CvPlot* self, TeamTypes eTeam, InvisibleTypes eInvisible, int& result);static void AfterCvPlot_getInvisibleVisibilityCount(const CvPlot* self, TeamTypes eTeam, InvisibleTypes eInvisible, int& result);static int ReplaceCvPlot_getInvisibleVisibilityCount(int (*original)(const CvPlot*, TeamTypes, InvisibleTypes), const CvPlot* self, TeamTypes eTeam, InvisibleTypes eInvisible);CivRegisterBefore<CivHooks::CvPlot_getInvisibleVisibilityCount>(host, &BeforeCvPlot_getInvisibleVisibilityCount);CivRegisterAfter<CivHooks::CvPlot_getInvisibleVisibilityCount>(host, &AfterCvPlot_getInvisibleVisibilityCount);CivRegisterReplace<CivHooks::CvPlot_getInvisibleVisibilityCount>(host, &ReplaceCvPlot_getInvisibleVisibilityCount);

Code

10074int CvPlot::getInvisibleVisibilityCount(TeamTypes eTeam, InvisibleTypes eInvisible) const10075{10076	CvAssertMsg(eTeam >= 0, "eTeam is expected to be non-negative (invalid Index)");10077	CvAssertMsg(eTeam < MAX_TEAMS, "eTeam is expected to be within maximum bounds (invalid Index)");10078	CvAssertMsg(eInvisible >= 0, "eInvisible is expected to be non-negative (invalid Index)");10079	CvAssertMsg(eInvisible < NUM_INVISIBLE_TYPES, "eInvisible is expected to be within maximum bounds (invalid Index)");10080	if(eTeam < 0 || eTeam >= MAX_TEAMS) return 0;10081	if(eInvisible < 0 || eInvisible >= NUM_INVISIBLE_TYPES) return 0;10082	return m_apaiInvisibleVisibilityCount[eTeam][eInvisible];10083}

Called by