Methapolis
0.27
|
Public Member Functions | |
CityLocation (int x, int y) | |
int | hashCode () |
boolean | equals (Object obj) |
String | toString () |
Public Attributes | |
int | x |
int | y |
Coordinates of a location (x,y) in the city.
Definition at line 16 of file CityLocation.java.
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().
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.
int micropolisj.engine.CityLocation.hashCode | ( | ) |
Definition at line 38 of file CityLocation.java.
References micropolisj.engine.CityLocation.x, and micropolisj.engine.CityLocation.y.
String micropolisj.engine.CityLocation.toString | ( | ) |
Definition at line 56 of file CityLocation.java.
References micropolisj.engine.CityLocation.x, and micropolisj.engine.CityLocation.y.
int micropolisj.engine.CityLocation.x |
The X coordinate of this location. Increasing X coordinates correspond to East, and decreasing X coordinates correspond to West.
Definition at line 21 of file CityLocation.java.
Referenced by micropolisj.engine.CityLocation.CityLocation(), micropolisj.gui.MainWindow.cityMessage(), micropolisj.gui.MainWindow.citySound(), micropolisj.engine.CityLocation.equals(), micropolisj.engine.CityLocation.hashCode(), micropolisj.engine.Micropolis.makeMeltdown(), micropolisj.engine.MonsterSprite.MonsterSprite(), micropolisj.engine.Micropolis.movePowerLocation(), micropolisj.gui.MainWindow.onToolDown(), micropolisj.gui.MainWindow.onToolDrag(), micropolisj.gui.MainWindow.onToolHover(), micropolisj.engine.Micropolis.testForCond(), and micropolisj.engine.CityLocation.toString().
int micropolisj.engine.CityLocation.y |
The Y coordinate of this location. Increasing Y coordinates correspond to South, and decreasing Y coordinates correspond to North.
Definition at line 26 of file CityLocation.java.
Referenced by micropolisj.engine.CityLocation.CityLocation(), micropolisj.gui.MainWindow.cityMessage(), micropolisj.gui.MainWindow.citySound(), micropolisj.engine.CityLocation.equals(), micropolisj.engine.CityLocation.hashCode(), micropolisj.engine.Micropolis.makeMeltdown(), micropolisj.engine.MonsterSprite.MonsterSprite(), micropolisj.engine.Micropolis.movePowerLocation(), micropolisj.gui.MainWindow.onToolDown(), micropolisj.gui.MainWindow.onToolDrag(), micropolisj.gui.MainWindow.onToolHover(), micropolisj.engine.Micropolis.testForCond(), and micropolisj.engine.CityLocation.toString().