net.sf.freecol.common.model
Class DifficultyLevel

java.lang.Object
  extended by net.sf.freecol.common.model.FreeColObject
      extended by net.sf.freecol.common.model.FreeColGameObjectType
          extended by net.sf.freecol.common.model.DifficultyLevel

public class DifficultyLevel
extends FreeColGameObjectType

Represents a difficulty level.


Field Summary
private  java.util.Map<java.lang.String,AbstractOption> levelOptions
           
 
Fields inherited from class net.sf.freecol.common.model.FreeColGameObjectType
featureContainer
 
Fields inherited from class net.sf.freecol.common.model.FreeColObject
ARRAY_SIZE, ID_ATTRIBUTE, ID_ATTRIBUTE_TAG, logger, PARTIAL_ATTRIBUTE
 
Constructor Summary
DifficultyLevel(int index)
           
 
Method Summary
 AbstractOption getOption(java.lang.String Id)
           
 java.util.Map<java.lang.String,AbstractOption> getOptions()
           
 void readFromXML(javax.xml.stream.XMLStreamReader in, Specification specification)
           
 
Methods inherited from class net.sf.freecol.common.model.FreeColGameObjectType
addAbility, addModifier, getFeatureContainer, getIndex, getModifierSet, hasAbility, hasAbility, readAttributes, readChild, readChildren, readFromXMLImpl, setFeatureContainer, setIndex, toString, toXMLImpl
 
Methods inherited from class net.sf.freecol.common.model.FreeColObject
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAttribute, getAttribute, getAttribute, getAttribute, getId, getPropertyChangeListeners, getPropertyChangeListeners, getXMLElementTagName, hasAttribute, hasListeners, readAttributes, readChildren, readFromArrayElement, readFromArrayElement, readFromArrayElement, readFromListElement, readFromXML, readFromXMLElement, readFromXMLPartialImpl, removePropertyChangeListener, removePropertyChangeListener, setId, toArrayElement, toArrayElement, toListElement, toXML, toXML, toXML, toXMLElement, toXMLElement, toXMLElement, toXMLElement, toXMLElementPartial, toXMLPartialImpl, writeAttribute, writeAttributes, writeChildren, writeFreeColGameObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

levelOptions

private final java.util.Map<java.lang.String,AbstractOption> levelOptions
Constructor Detail

DifficultyLevel

public DifficultyLevel(int index)
Method Detail

getOption

public AbstractOption getOption(java.lang.String Id)
                         throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

getOptions

public java.util.Map<java.lang.String,AbstractOption> getOptions()

readFromXML

public void readFromXML(javax.xml.stream.XMLStreamReader in,
                        Specification specification)
                 throws javax.xml.stream.XMLStreamException
Overrides:
readFromXML in class FreeColGameObjectType
Throws:
javax.xml.stream.XMLStreamException