game.geography
Class City

java.lang.Object
  |
  +--game.geography.City

public class City
extends java.lang.Object

A class to hold city data.


Nested Class Summary
static class City.EthnicGroupData
           
 
Constructor Summary
City()
          Constructor.
City(java.lang.String _name)
          Constructor with name.
 
Method Summary
 java.awt.Image getImage()
          Return the displayable image.
 java.lang.String getName()
          Get the name of the city.
 Square getSquare()
          Get the square.
static XML getXML()
           
 void setEthnicGroup(City.EthnicGroupData value)
          This method is somewhat contorted because of the design of EthnicGroup.
 void setImage(java.lang.String imageName)
          Set the image.
 void setLocation(Location value)
          Set the square for the city.
 void setLocation(java.lang.String value)
          Set the square for the city.
 void setName(java.lang.String value)
          Set the name of the city.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

City

public City()
Constructor.


City

public City(java.lang.String _name)
Constructor with name.

Parameters:
_name - the city name.
Method Detail

setName

public void setName(java.lang.String value)
Set the name of the city.

Parameters:
value - name to give the city.

getName

public java.lang.String getName()
Get the name of the city.

Returns:
the name of this city.

setImage

public void setImage(java.lang.String imageName)
Set the image.


getImage

public java.awt.Image getImage()
Return the displayable image.

Returns:
the displayable image.

setLocation

public void setLocation(Location value)
Set the square for the city.


setLocation

public void setLocation(java.lang.String value)
Set the square for the city.


getSquare

public Square getSquare()
Get the square.


setEthnicGroup

public void setEthnicGroup(City.EthnicGroupData value)
This method is somewhat contorted because of the design of EthnicGroup.


getXML

public static XML getXML()