|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.freecol.common.option.AbstractOption
net.sf.freecol.common.option.OptionGroup
net.sf.freecol.common.option.OptionMap
net.sf.freecol.common.model.GameOptions
public class GameOptions
Keeps track of the available game options. New options should be added to
addDefaultOptions() and each option should be given an unique
identifier (defined as a constant in this class).
| Field Summary | |
|---|---|
static java.lang.String |
COPYRIGHT
|
static java.lang.String |
CUSTOM_IGNORE_BOYCOTT
Does the Custom House sell boycotted goods |
static java.lang.String |
DIFFICULTY
The difficulty of the game. |
static java.lang.String |
EXPERTS_HAVE_CONNECTIONS
Whether experts have connections, producing without raw materials in factories |
static java.lang.String |
FOG_OF_WAR
Enables/disables fog of war. |
static java.lang.String |
HAMMER_PRICE
The cost of a single hammer when buying a building in a colony. |
static java.lang.String |
LICENSE
|
static java.lang.String |
REVISION
|
static java.lang.String |
STARTING_MONEY
The amount of money each player will receive before the game starts. |
static java.lang.String |
UNIT_HIDING
No units are hidden on carriers or settlements if this option is set to false. |
static java.lang.String |
VICTORY_DEFEAT_EUROPEANS
Victory condition: Should a Player who first defeats all
other european players win the game? |
static java.lang.String |
VICTORY_DEFEAT_HUMANS
Victory condition: Should a Player who first defeats all
other human players win the game? |
static java.lang.String |
VICTORY_DEFEAT_REF
Victory condition: Should the Player who first defeats the
Royal Expeditionary Force win the game? |
| Fields inherited from class net.sf.freecol.common.option.AbstractOption |
|---|
NO_ID |
| Constructor Summary | |
|---|---|
GameOptions()
Creates a new GameOptions. |
|
GameOptions(org.w3c.dom.Element e)
Creates an GameOptions from an XML representation. |
|
GameOptions(javax.xml.stream.XMLStreamReader in)
Creates an GameOptions from an XML representation. |
|
| Method Summary | |
|---|---|
protected void |
addDefaultOptions()
Adds the options to this GameOptions. |
static java.lang.String |
getXMLElementTagName()
Gets the tag name of the root element representing this object. |
| Methods inherited from class net.sf.freecol.common.option.OptionMap |
|---|
addToMap, getBoolean, getInteger, getObject, readFromXMLImpl, toXML |
| Methods inherited from class net.sf.freecol.common.option.OptionGroup |
|---|
add, iterator, removeAll, toXMLImpl |
| Methods inherited from class net.sf.freecol.common.option.AbstractOption |
|---|
addPropertyChangeListener, firePropertyChange, getId, getName, getShortDescription, readFromXML, readFromXMLElement, removePropertyChangeListener, toString, toXMLElement |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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
public static final java.lang.String STARTING_MONEY
public static final java.lang.String HAMMER_PRICE
public static final java.lang.String CUSTOM_IGNORE_BOYCOTT
public static final java.lang.String EXPERTS_HAVE_CONNECTIONS
public static final java.lang.String FOG_OF_WAR
public static final java.lang.String UNIT_HIDING
false.
public static final java.lang.String VICTORY_DEFEAT_REF
Player who first defeats the
Royal Expeditionary Force win the game?
public static final java.lang.String VICTORY_DEFEAT_EUROPEANS
Player who first defeats all
other european players win the game?
public static final java.lang.String VICTORY_DEFEAT_HUMANS
Player who first defeats all
other human players win the game?
public static final java.lang.String DIFFICULTY
| Constructor Detail |
|---|
public GameOptions()
GameOptions.
public GameOptions(javax.xml.stream.XMLStreamReader in)
throws javax.xml.stream.XMLStreamException
GameOptions from an XML representation.
in - The input stream containing the XML.
javax.xml.stream.XMLStreamException - if an error occured during parsing.public GameOptions(org.w3c.dom.Element e)
GameOptions from an XML representation.
e - An XML-element that will be used to initialize
this object.| Method Detail |
|---|
protected void addDefaultOptions()
GameOptions.
addDefaultOptions in class OptionMappublic static java.lang.String getXMLElementTagName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||