Methapolis  0.27
 All Classes Namespaces Files Functions Variables Enumerator
micropolisj.engine.CityLocation Class Reference
Inheritance diagram for micropolisj.engine.CityLocation:
Collaboration diagram for micropolisj.engine.CityLocation:

Public Member Functions

 CityLocation (int x, int y)
int hashCode ()
boolean equals (Object obj)
String toString ()

Public Attributes

int x
int y

Detailed Description

Coordinates of a location (x,y) in the city.

Definition at line 16 of file CityLocation.java.

Constructor & Destructor Documentation

micropolisj.engine.CityLocation.CityLocation ( int  x,
int  y 
)

Constructs and initializes city coordinates.

Definition at line 31 of file CityLocation.java.

References micropolisj.engine.CityLocation.x, and micropolisj.engine.CityLocation.y.

Referenced by micropolisj.engine.CityLocation.equals().

Member Function Documentation

boolean micropolisj.engine.CityLocation.equals ( Object  obj)

Definition at line 44 of file CityLocation.java.

References micropolisj.engine.CityLocation.CityLocation(), micropolisj.engine.CityLocation.x, and micropolisj.engine.CityLocation.y.

Here is the call graph for this function:

int micropolisj.engine.CityLocation.hashCode ( )
String micropolisj.engine.CityLocation.toString ( )

Member Data Documentation


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