Class Tile

java.lang.Object
com.valhalla.sdk.api.math.Tile

public final class Tile extends Object
  • Field Details

    • x

      public final int x
    • y

      public final int y
    • plane

      public final int plane
  • Constructor Details

    • Tile

      public Tile(int x, int y, int plane)
  • Method Details

    • getX

      public int getX()
    • getY

      public int getY()
    • getPlane

      public int getPlane()
    • translate

      public Tile translate(int deltaX, int deltaY)
    • translate

      public Tile translate(int deltaX, int deltaY, int deltaPlane)
    • withPlane

      public Tile withPlane(int newPlane)
    • distanceTo

      public int distanceTo(Tile other)
    • distanceSquaredTo

      public long distanceSquaredTo(Tile other)
    • isWithinDistance

      public boolean isWithinDistance(Tile other, int distance)
    • getRegionId

      public int getRegionId()
    • equals

      public boolean equals(Object value)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object