com.realtime.crossfire.jxclient.map
Class Location

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

public class Location
extends java.lang.Object

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

layer

private final int layer
The layer.


x

private final int x
The x-coordinate.


y

private final int y
The y-coordinate.

Constructor Detail

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 Detail

equals

public boolean equals(@Nullable
                      java.lang.Object obj)

Overrides:
equals in class java.lang.Object

getLayer

public int getLayer()
Returns the layer.

Returns:
the layer

getX

public int getX()
Returns the x-coordinate.

Returns:
the x-coordinate

getY

public int getY()
Returns the y-coordinate.

Returns:
the y-coordinate

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

toString

@NotNull
public java.lang.String toString()

Overrides:
toString in class java.lang.Object