|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.freecol.common.model.BuildingType
public final class BuildingType
Contains information on building types, like the number of upgrade levels a given building type can have. The levels contain the information about the name of the building in a given level and what is needed to build it.
| Nested Class Summary | |
|---|---|
static class |
BuildingType.Level
Gives informations about the different levels a building can have. |
| Field Summary | |
|---|---|
static java.lang.String |
COPYRIGHT
|
static java.lang.String |
LICENSE
|
static java.lang.String |
REVISION
|
| Constructor Summary | |
|---|---|
BuildingType()
|
|
| Method Summary | |
|---|---|
java.util.List<BuildingType.Level> |
getLevels()
Returns a list containing all the possible levels for the given building type. |
BuildingType.Level |
level(int levelIndex)
Returns a Level object giving informations about the
possible levels of a building. |
int |
numberOfLevels()
Returns the number of levels a the given building type can have. |
void |
readFromXmlElement(org.w3c.dom.Node xml)
Reads the content of this BuildingType object from the given XML node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String LICENSE
public static final java.lang.String REVISION
| Constructor Detail |
|---|
public BuildingType()
| Method Detail |
|---|
public void readFromXmlElement(org.w3c.dom.Node xml)
xml - an XML node from which to fill this BuildingType's fields.public java.util.List<BuildingType.Level> getLevels()
Level objects for the
given building.public int numberOfLevels()
public BuildingType.Level level(int levelIndex)
Level object giving informations about the
possible levels of a building.
levelIndex - the level for which to retrieve information.
Level object.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||