Bazaar developer reference

CvPlot::isAdjacentRevealed(TeamTypes) const

Defined in
CvPlot.cpp, line 9569
Class
CvPlot
Hook name
CivHooks::CvPlot_isAdjacentRevealed

Hooks

static bool BeforeCvPlot_isAdjacentRevealed(const CvPlot* self, TeamTypes eTeam, bool& result);static void AfterCvPlot_isAdjacentRevealed(const CvPlot* self, TeamTypes eTeam, bool& result);static bool ReplaceCvPlot_isAdjacentRevealed(bool (*original)(const CvPlot*, TeamTypes), const CvPlot* self, TeamTypes eTeam);CivRegisterBefore<CivHooks::CvPlot_isAdjacentRevealed>(host, &BeforeCvPlot_isAdjacentRevealed);CivRegisterAfter<CivHooks::CvPlot_isAdjacentRevealed>(host, &AfterCvPlot_isAdjacentRevealed);CivRegisterReplace<CivHooks::CvPlot_isAdjacentRevealed>(host, &ReplaceCvPlot_isAdjacentRevealed);

Code

9569bool CvPlot::isAdjacentRevealed(TeamTypes eTeam) const9570{9571	CvPlot* pAdjacentPlot;9572	int iI;95739574	for(iI = 0; iI < NUM_DIRECTION_TYPES; ++iI)9575	{9576		pAdjacentPlot = plotDirection(getX(), getY(), ((DirectionTypes)iI));95779578		if(pAdjacentPlot != NULL)9579		{9580			if(pAdjacentPlot->isRevealed(eTeam))9581			{9582				return true;9583			}9584		}9585	}95869587	return false;9588}

Calls

Called by