|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.freecol.common.model.FreeColObject
net.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 |
ALLOW_STUDENT_SELECTION
Whether to educate the least skilled unit first. |
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 |
EXPLORATION_POINTS
Whether to award exploration points or not. |
static java.lang.String |
FOG_OF_WAR
Enables/disables fog of war. |
static java.lang.String |
SAVE_PRODUCTION_OVERFLOW
|
static java.lang.String |
STARTING_MONEY
The amount of money each player will receive before the game starts. |
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 |
Fields inherited from class net.sf.freecol.common.model.FreeColObject |
---|
ID_ATTRIBUTE_TAG |
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 | |
---|---|
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, getFile, getInteger, getObject, load, putOption, save, setFile, toXML |
Methods inherited from class net.sf.freecol.common.option.OptionGroup |
---|
add, getName, getShortDescription, iterator, removeAll |
Methods inherited from class net.sf.freecol.common.option.AbstractOption |
---|
getGroup, isPreviewEnabled, setGroup, setPreviewEnabled, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.sf.freecol.common.option.Option |
---|
addPropertyChangeListener, getId, readFromXML, readFromXMLElement, removePropertyChangeListener, toXMLElement |
Field Detail |
---|
public static final java.lang.String STARTING_MONEY
public static final java.lang.String CUSTOM_IGNORE_BOYCOTT
public static final java.lang.String EXPERTS_HAVE_CONNECTIONS
public static final java.lang.String SAVE_PRODUCTION_OVERFLOW
public static final java.lang.String EXPLORATION_POINTS
public static final java.lang.String FOG_OF_WAR
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 ALLOW_STUDENT_SELECTION
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 |
---|
public static java.lang.String getXMLElementTagName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |