public class LocalPoint
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static LocalPoint |
NIL |
| Constructor and Description |
|---|
LocalPoint(int x,
int y) |
| Modifier and Type | Method and Description |
|---|---|
int |
distanceTo(LocalPoint other)
Gets the distance between this point and another.
|
boolean |
equals(java.lang.Object o) |
static LocalPoint |
fromScene(int x,
int y)
Gets the coordinate at the center of the passed tile.
|
static LocalPoint |
fromWorld(SimpleClient client,
int x,
int y)
Gets the local coordinate at the center of the passed tile.
|
static LocalPoint |
fromWorld(SimpleClient client,
WorldPoint world) |
int |
getSceneX()
Gets the x-axis coordinate in scene space (tiles).
|
int |
getSceneY()
Gets the y-axis coordinate in scene space (tiles).
|
int |
getX() |
int |
getY() |
int |
hashCode() |
java.lang.String |
toString() |
public static final LocalPoint NIL
public static LocalPoint fromWorld(SimpleClient client, WorldPoint world)
public static LocalPoint fromWorld(SimpleClient client, int x, int y)
client - the clientx - x-axis coordinate of the tiley - y-axis coordinate of the tilepublic int distanceTo(LocalPoint other)
other - other pointpublic static LocalPoint fromScene(int x, int y)
x - x-axis coordinate of the tile in Scene coordsy - y-axis coordinate of the tile in Scene coordspublic int getX()
public int getY()
public int getSceneX()
public int getSceneY()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object