Bazaar developer reference

CvPlot::isAdjacentToIce() const

Defined in
CvPlot.cpp, line 1046
Class
CvPlot
Hook name
CivHooks::CvPlot_isAdjacentToIce

Hooks

static bool BeforeCvPlot_isAdjacentToIce(const CvPlot* self, bool& result);static void AfterCvPlot_isAdjacentToIce(const CvPlot* self, bool& result);static bool ReplaceCvPlot_isAdjacentToIce(bool (*original)(const CvPlot*), const CvPlot* self);CivRegisterBefore<CivHooks::CvPlot_isAdjacentToIce>(host, &BeforeCvPlot_isAdjacentToIce);CivRegisterAfter<CivHooks::CvPlot_isAdjacentToIce>(host, &AfterCvPlot_isAdjacentToIce);CivRegisterReplace<CivHooks::CvPlot_isAdjacentToIce>(host, &ReplaceCvPlot_isAdjacentToIce);

Code

1046bool CvPlot::isAdjacentToIce() const1047{1048	CvPlot* pAdjacentPlot;1049	int iI;10501051	for(iI = 0; iI < NUM_DIRECTION_TYPES; ++iI)1052	{1053		pAdjacentPlot = plotDirection(getX(), getY(), ((DirectionTypes)iI));10541055		if(pAdjacentPlot != NULL)1056		{1057			if(pAdjacentPlot->isIce())1058			{1059				return true;1060			}1061		}1062	}10631064	return false;1065}

Calls

Called by