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 TypeMethodDescriptionvoidfillFromXML(NodeList nl) This is used to fill a GameOptions object from an XML node list written using writeToXML.protected AbstractOptionsInfovoidloadOptions(File file, boolean print) static voidsaveOptions(Vector<IBasicOption> options) static voidsaveOptions(Vector<IBasicOption> options, String file) Saves the givenVectorofIBasicOptionvoidwriteToXML(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:
initializein classBasicGameOptions
-
loadOptions
- Specified by:
loadOptionsin classBasicGameOptions
-
loadOptions
- Specified by:
loadOptionsin classBasicGameOptions
-
saveOptions
-
saveOptions
Saves the givenVectorofIBasicOption- Parameters:
options-VectorofIBasicOptionfile- string with the name of the file
-
getOptionsInfoImp
- Specified by:
getOptionsInfoImpin 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
-