|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--game.geography.City
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 |
public City()
public City(java.lang.String _name)
_name - the city name.| Method Detail |
public void setName(java.lang.String value)
value - name to give the city.public java.lang.String getName()
public void setImage(java.lang.String imageName)
public java.awt.Image getImage()
public void setLocation(Location value)
public void setLocation(java.lang.String value)
public Square getSquare()
public void setEthnicGroup(City.EthnicGroupData value)
public static XML getXML()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||