Esempio n. 1
0
 /// <inheritdoc/>
 public static IEnumerator GetEnumerator(this IHex @this)
 {
     return(@this.GetNeighbourHexes().GetEnumerator());
 }
Esempio n. 2
0
 /// <summary>TODO</summary>
 /// <param name="this"></param>
 /// <param name="directions"></param>
 /// <returns></returns>
 public static IEnumerable <NeighbourHex> GetNeighbourHexes(this IHex @this, HexsideFlags directions)
 {
     return(from n in @this.GetNeighbourHexes()
            where directions.HasFlag(n.HexsideEntry.Direction()) && n.Hex.IsOnboard()
            select n);
 }