Bazaar developer reference

CvPlot::isAdjacentVisible(TeamTypes, bool) const

Defined in
CvPlot.cpp, line 3586
Class
CvPlot
Hook name
CivHooks::CvPlot_isAdjacentVisible

Hooks

static bool BeforeCvPlot_isAdjacentVisible(const CvPlot* self, TeamTypes eTeam, bool bDebug, bool& result);static void AfterCvPlot_isAdjacentVisible(const CvPlot* self, TeamTypes eTeam, bool bDebug, bool& result);static bool ReplaceCvPlot_isAdjacentVisible(bool (*original)(const CvPlot*, TeamTypes, bool), const CvPlot* self, TeamTypes eTeam, bool bDebug);CivRegisterBefore<CivHooks::CvPlot_isAdjacentVisible>(host, &BeforeCvPlot_isAdjacentVisible);CivRegisterAfter<CivHooks::CvPlot_isAdjacentVisible>(host, &AfterCvPlot_isAdjacentVisible);CivRegisterReplace<CivHooks::CvPlot_isAdjacentVisible>(host, &ReplaceCvPlot_isAdjacentVisible);

Code

3586bool CvPlot::isAdjacentVisible(TeamTypes eTeam, bool bDebug) const3587{3588	CvPlot* pAdjacentPlot;3589	int iI;35903591	for(iI = 0; iI < NUM_DIRECTION_TYPES; ++iI)3592	{3593		pAdjacentPlot = plotDirection(getX(), getY(), ((DirectionTypes)iI));35943595		if(pAdjacentPlot != NULL)3596		{3597			if(pAdjacentPlot->isVisible(eTeam, bDebug))3598			{3599				return true;3600			}3601		}3602	}36033604	return false;3605}

Calls

Called by