public class Scene
extends java.lang.Object
| Constructor | Description |
|---|---|
Scene() |
| Modifier and Type | Method | Description |
|---|---|---|
static int |
getDistanceBetween(int x,
int y,
int x2,
int y2) |
Calculates the distance in coordinates between two two-dimensional points.
|
static java.util.Optional<java.lang.Integer> |
getTileHeight(int x,
int y,
int plane) |
Calculates the above ground height of a tile point.
|
static java.util.Optional<java.awt.Point> |
getTilePosition(LandscapeTile tile) |
Gets the coordinates of a tile, relative to the local player.
|
public static java.util.Optional<java.lang.Integer> getTileHeight(int x,
int y,
int plane)
x - the ground coordinate on the x axisy - the ground coordinate on the y axisplane - the client plane/ground levelpublic static java.util.Optional<java.awt.Point> getTilePosition(LandscapeTile tile)
tile - the subject LandscapeTilepublic static int getDistanceBetween(int x,
int y,
int x2,
int y2)
x - the first x coordinatey - the first y coordinatex2 - the second x coordinatey2 - the second y coordinate