Class Location
- java.lang.Object
-
- com.realtime.crossfire.jxclient.map.Location
-
public class Location extends java.lang.ObjectA location on the map.
-
-
Constructor Summary
Constructors Constructor Description Location(int x, int y, int layer)Creates a new location.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(@Nullable java.lang.Object obj)intgetLayer()Returns the layer.intgetX()Returns the x-coordinate.intgetY()Returns the y-coordinate.inthashCode()@NotNull java.lang.StringtoString()
-
-
-
Method Detail
-
getX
public int getX()
Returns the x-coordinate.- Returns:
- the x-coordinate
-
getY
public int getY()
Returns the y-coordinate.- Returns:
- the y-coordinate
-
getLayer
public int getLayer()
Returns the layer.- Returns:
- the layer
-
equals
public boolean equals(@Nullable @Nullable java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
@NotNull public @NotNull java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-