Class Area

java.lang.Object
jason.environment.grid.Area
All Implemented Interfaces:
Serializable

public final class Area extends Object implements Serializable
See Also:
  • Field Details

  • Constructor Details

    • Area

      public Area(int topLeftX, int topLeftY, int bottonRightX, int bottonRightY)
    • Area

      public Area(Location topLeft, Location bottonRight)
  • Method Details

    • contains

      public boolean contains(Location l)
    • center

      public Location center()
    • distanceMaxBorder

      @Deprecated public int distanceMaxBorder(Location l)
      Deprecated.
      renamed to chebyshevDistanceToBorder
    • chebyshevDistanceToBorder

      public int chebyshevDistanceToBorder(Location l)
      returns the minimal distance from l to the border of the area
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • clone

      public Object clone()
      Overrides:
      clone in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object