java.lang.Object com.realtime.crossfire.jxclient.map.Location
public class Location
A location on the map.
Field Summary | |
---|---|
private int |
layer
The layer. |
private int |
x
The x-coordinate. |
private int |
y
The y-coordinate. |
Constructor Summary | |
---|---|
Location(int x,
int y,
int layer)
Creates a new location. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
int |
getLayer()
Returns the layer. |
int |
getX()
Returns the x-coordinate. |
int |
getY()
Returns the y-coordinate. |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final int layer
private final int x
private final int y
Constructor Detail |
---|
public Location(int x, int y, int layer)
x
- the x-coordinatey
- the y-coordinatelayer
- the layerMethod Detail |
---|
public boolean equals(@Nullable java.lang.Object obj)
equals
in class java.lang.Object
public int getLayer()
public int getX()
public int getY()
public int hashCode()
hashCode
in class java.lang.Object
@NotNull public java.lang.String toString()
toString
in class java.lang.Object