Crossfire JXClient, Trunk  R20561
com.realtime.crossfire.jxclient.map.Location Class Reference

A location on the map. More...

+ Collaboration diagram for com.realtime.crossfire.jxclient.map.Location:

Public Member Functions

boolean equals (@Nullable final Object obj)
 
int getLayer ()
 Returns the layer. More...
 
int getX ()
 Returns the x-coordinate. More...
 
int getY ()
 Returns the y-coordinate. More...
 
int hashCode ()
 
 Location (final int x, final int y, final int layer)
 Creates a new location. More...
 
String toString ()
 

Private Attributes

final int layer
 The layer. More...
 
final int x
 The x-coordinate. More...
 
final int y
 The y-coordinate. More...
 

Detailed Description

A location on the map.

Author
Andreas Kirschbaum

Definition at line 31 of file Location.java.

Constructor & Destructor Documentation

◆ Location()

com.realtime.crossfire.jxclient.map.Location.Location ( final int  x,
final int  y,
final int  layer 
)

Creates a new location.

Parameters
xthe x-coordinate
ythe y-coordinate
layerthe layer

Definition at line 54 of file Location.java.

References com.realtime.crossfire.jxclient.map.Location.layer, com.realtime.crossfire.jxclient.map.Location.x, and com.realtime.crossfire.jxclient.map.Location.y.

Referenced by com.realtime.crossfire.jxclient.map.Location.equals().

+ Here is the caller graph for this function:

Member Function Documentation

◆ equals()

boolean com.realtime.crossfire.jxclient.map.Location.equals ( @Nullable final Object  obj)

◆ getLayer()

int com.realtime.crossfire.jxclient.map.Location.getLayer ( )

Returns the layer.

Returns
the layer

Definition at line 80 of file Location.java.

References com.realtime.crossfire.jxclient.map.Location.layer.

◆ getX()

int com.realtime.crossfire.jxclient.map.Location.getX ( )

Returns the x-coordinate.

Returns
the x-coordinate

Definition at line 64 of file Location.java.

References com.realtime.crossfire.jxclient.map.Location.x.

◆ getY()

int com.realtime.crossfire.jxclient.map.Location.getY ( )

Returns the y-coordinate.

Returns
the y-coordinate

Definition at line 72 of file Location.java.

References com.realtime.crossfire.jxclient.map.Location.y.

◆ hashCode()

int com.realtime.crossfire.jxclient.map.Location.hashCode ( )

Definition at line 103 of file Location.java.

◆ toString()

String com.realtime.crossfire.jxclient.map.Location.toString ( )

Definition at line 112 of file Location.java.

References com.realtime.crossfire.jxclient.map.Location.layer.

Member Data Documentation

◆ layer

◆ x

final int com.realtime.crossfire.jxclient.map.Location.x
private

◆ y

final int com.realtime.crossfire.jxclient.map.Location.y
private

The documentation for this class was generated from the following file: