Package com.valhalla.sdk.api.math
Class Area
java.lang.Object
com.valhalla.sdk.api.math.Area
An immutable rectangular or polygonal world area on one plane.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(int x, int y) booleanintdistanceTo(Tile origin) intgetMaxX()intgetMaxY()intgetMinX()intgetMinY()getNearestTile(Tile origin) intgetPlane()getRandomTile(Random random) getTiles()Tile[]toString()
-
Constructor Details
-
Area
public Area(int x1, int y1, int x2, int y2) -
Area
public Area(int x1, int y1, int x2, int y2, int plane) -
Area
-
Area
-
-
Method Details
-
getPlane
public int getPlane() -
getMinX
public int getMinX() -
getMaxX
public int getMaxX() -
getMinY
public int getMinY() -
getMaxY
public int getMaxY() -
getVertices
-
getCenter
-
contains
-
contains
public boolean contains(int x, int y) -
getNearestTile
-
distanceTo
-
getRandomTile
-
getRandomTile
-
getTiles
-
toString
-