Interface ImmutableZone

All Superinterfaces:
Iterable<Coord>, Serializable, Zone
All Known Implementing Classes:
CoordPackerZone

public interface ImmutableZone
extends Zone
Created by Tommy Ettinger on 11/24/2016.
  • Method Details

    • expand

      Zone expand​(int distance)
      Expands the area of this Zone in the four cardinal directions, performing the expansion consecutively distance times. Does not modify this Zone; returns a new Zone with the requested changes.
      Parameters:
      distance - the amount to expand outward using Manhattan distance (diamond shape)
      Returns:
      a freshly-constructed Zone with the requested changes
    • expand8way

      Zone expand8way​(int distance)
      Expands the area of this Zone in the four cardinal and four diagonal directions, performing the expansion consecutively distance times. Does not modify this Zone; returns a new Zone with the requested changes.
      Parameters:
      distance - the amount to expand outward using Chebyshev distance (square shape)
      Returns:
      a freshly-constructed Zone with the requested changes