public class TilePosition
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static TilePosition |
Invalid |
static TilePosition |
None |
static TilePosition |
Unknown |
Constructor and Description |
---|
TilePosition(int x,
int y) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
double |
getDistance(TilePosition position) |
double |
getLength() |
int |
getX() |
int |
getY() |
int |
hashCode() |
boolean |
hasPath(TilePosition position) |
boolean |
isValid() |
TilePosition |
makeValid() |
java.lang.String |
toString() |
public static TilePosition Invalid
public static TilePosition None
public static TilePosition Unknown
public java.lang.String toString()
toString
in class java.lang.Object
public boolean hasPath(TilePosition position)
public boolean isValid()
public TilePosition makeValid()
public double getDistance(TilePosition position)
public double getLength()
public int getX()
public int getY()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object