Bazaar developer reference

plotDirection(int, int, DirectionTypes)

Defined in
CvGameCoreUtils.h, line 172
Not a hook point
written in a header

Code

168//// Returns the distance between plots according to the pattern above...169//170//// not anymore - we are using hexes now171//172inline CvPlot* plotDirection(int iX, int iY, DirectionTypes eDirection)173{174	if(eDirection == NO_DIRECTION)175	{176		return GC.getMap().plot(iX, iY);177	}178	else179	{180		// convert to hex-space coordinates - the coordinate system axes are E and NE (not orthogonal)181		iX = xToHexspaceX(iX , iY);182		iX += GC.getPlotDirectionX()[eDirection];183		iY += GC.getPlotDirectionY()[eDirection];184185		// convert from hex-space coordinates to the storage array186		iX = hexspaceXToX(iX, iY);187188		return GC.getMap().plot(iX, iY);189	}190}

Calls

Called by

122 functions in 25 files