jfreerails.world.terrain
Class CityModel

java.lang.Object
  extended by jfreerails.world.terrain.CityModel
All Implemented Interfaces:
java.io.Serializable, FreerailsSerializable

public class CityModel
extends java.lang.Object
implements FreerailsSerializable

A city.

Author:
Luke
See Also:
Serialized Form

Field Summary
private  java.lang.String name
           
private static long serialVersionUID
           
private  int x
           
private  int y
           
 
Constructor Summary
CityModel(java.lang.String s, int xx, int yy)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getCityName()
           
 int getCityX()
           
 int getCityY()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

name

private final java.lang.String name

x

private final int x

y

private final int y
Constructor Detail

CityModel

public CityModel(java.lang.String s,
                 int xx,
                 int yy)
Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getCityName

public java.lang.String getCityName()

getCityX

public int getCityX()

getCityY

public int getCityY()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object