Example #1
0
 ////////////////////////////////////////////////////////////////////////////////////////////////////
 /// <summary>	Return the unconnected neighbors of a position. </summary>
 ///
 /// <remarks>	Darrellp, 9/19/2011. </remarks>
 ///
 /// <param name="cellLocation">	The cell location whose unconnected neighbors are desired. </param>
 ///
 /// <returns>	The unconnected neighbors as an IEnumerable. </returns>
 ////////////////////////////////////////////////////////////////////////////////////////////////////
 internal IEnumerable <MapCoordinates> UnconnectedNeighbors(MapCoordinates cellLocation)
 {
     return(cellLocation.Neighbors(_mapWidth, _mapHeight).Where(crd => !IsConnected(crd, cellLocation)));
 }