Bazaar developer reference

CvPlot::isAdjacentNonrevealed(TeamTypes) const

Defined in
CvPlot.cpp, line 9591
Class
CvPlot
Hook name
CivHooks::CvPlot_isAdjacentNonrevealed

Hooks

static bool BeforeCvPlot_isAdjacentNonrevealed(const CvPlot* self, TeamTypes eTeam, bool& result);static void AfterCvPlot_isAdjacentNonrevealed(const CvPlot* self, TeamTypes eTeam, bool& result);static bool ReplaceCvPlot_isAdjacentNonrevealed(bool (*original)(const CvPlot*, TeamTypes), const CvPlot* self, TeamTypes eTeam);CivRegisterBefore<CivHooks::CvPlot_isAdjacentNonrevealed>(host, &BeforeCvPlot_isAdjacentNonrevealed);CivRegisterAfter<CivHooks::CvPlot_isAdjacentNonrevealed>(host, &AfterCvPlot_isAdjacentNonrevealed);CivRegisterReplace<CivHooks::CvPlot_isAdjacentNonrevealed>(host, &ReplaceCvPlot_isAdjacentNonrevealed);

Code

9591bool CvPlot::isAdjacentNonrevealed(TeamTypes eTeam) const9592{9593	CvPlot* pAdjacentPlot;9594	int iI;95959596	for(iI = 0; iI < NUM_DIRECTION_TYPES; ++iI)9597	{9598		pAdjacentPlot = plotDirection(getX(), getY(), ((DirectionTypes)iI));95999600		if(pAdjacentPlot != NULL)9601		{9602			if(!pAdjacentPlot->isRevealed(eTeam))9603			{9604				return true;9605			}9606		}9607	}96089609	return false;9610}

Calls

Called by