Interface MutableZone

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

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

    • expand

      Zone expand​(int distance)
      Expands this Zone in the four cardinal directions, performing the expansion consecutively distance times. Modified this Zone in-place and returns it for chaining.
      Parameters:
      distance - the amount to expand outward using Manhattan distance (diamond shape)
      Returns:
      this for chaining, after being modified in-place
    • expand8way

      Zone expand8way​(int distance)
      Expands this Zone in the four cardinal and four diagonal directions, performing the expansion consecutively distance times. Modified this Zone in-place and returns it for chaining.
      Parameters:
      distance - the amount to expand outward using Chebyshev distance (square shape)
      Returns:
      this for chaining, after being modified in-place