Package megamek.common.options
Class GameOptions
java.lang.Object
megamek.common.options.AbstractOptions
megamek.common.options.BasicGameOptions
megamek.common.options.GameOptions
- All Implemented Interfaces:
Serializable
,IGameOptions
Contains the options determining play in the current game.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class megamek.common.options.AbstractOptions
AbstractOptions.GroupsEnumeration
-
Field Summary
Fields inherited from class megamek.common.options.AbstractOptions
optionsHash
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
fillFromXML
(NodeList nl) This is used to fill a GameOptions object from an XML node list written using writeToXML.protected AbstractOptionsInfo
void
loadOptions
(File file, boolean print) static void
saveOptions
(Vector<IBasicOption> options) static void
saveOptions
(Vector<IBasicOption> options, String file) Saves the givenVector
ofIBasicOption
void
writeToXML
(PrintWriter pw, int indent) This is used by MekHQ to write the game options to the standard fileMethods inherited from class megamek.common.options.AbstractOptions
addGroup, addGroup, addOption, addOption, addOption, addOption, addOption, addOption, booleanOption, count, count, floatOption, getGroups, getOption, getOptionInfo, getOptionList, getOptionListString, getOptionMap, getOptions, getOptionsInfo, getOptionsList, intOption, stringOption
-
Constructor Details
-
GameOptions
public GameOptions()
-
-
Method Details
-
initialize
public void initialize()- Overrides:
initialize
in classBasicGameOptions
-
loadOptions
- Specified by:
loadOptions
in classBasicGameOptions
-
loadOptions
- Specified by:
loadOptions
in classBasicGameOptions
-
saveOptions
-
saveOptions
Saves the givenVector
ofIBasicOption
- Parameters:
options
-Vector
ofIBasicOption
file
- string with the name of the file
-
getOptionsInfoImp
- Specified by:
getOptionsInfoImp
in classAbstractOptions
-
writeToXML
This is used by MekHQ to write the game options to the standard file- Parameters:
pw
- the PrintWriter to write toindent
- the indent to write at
-
fillFromXML
This is used to fill a GameOptions object from an XML node list written using writeToXML.- Parameters:
nl
- the node list to parse
-