Package com.valhalla.sdk.api.math
Class Tile
java.lang.Object
com.valhalla.sdk.api.math.Tile
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongdistanceSquaredTo(Tile other) intdistanceTo(Tile other) booleanintgetPlane()intintgetX()intgetY()inthashCode()booleanisWithinDistance(Tile other, int distance) toString()translate(int deltaX, int deltaY) translate(int deltaX, int deltaY, int deltaPlane) withPlane(int newPlane)
-
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
-
translate
-
withPlane
-
distanceTo
-
distanceSquaredTo
-
isWithinDistance
-
getRegionId
public int getRegionId() -
equals
-
hashCode
public int hashCode() -
toString
-