Class Location

java.lang.Object
com.realtime.crossfire.jxclient.map.Location

public class Location extends Object
A location on the map.
  • Constructor Details

    • Location

      public Location(int x, int y, int layer)
      Creates a new location.
      Parameters:
      x - the x-coordinate
      y - the y-coordinate
      layer - the layer
  • Method Details

    • 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 Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      @NotNull public @NotNull String toString()
      Overrides:
      toString in class Object