Class GameOptions

All Implemented Interfaces:
Serializable, IGameOptions

public class GameOptions extends BasicGameOptions
Contains the options determining play in the current game.
See Also:
  • Constructor Details

    • GameOptions

      public GameOptions()
  • Method Details

    • initialize

      public void initialize()
      Overrides:
      initialize in class BasicGameOptions
    • loadOptions

      public Vector<IOption> loadOptions()
      Specified by:
      loadOptions in class BasicGameOptions
    • loadOptions

      public Vector<IOption> loadOptions(File file, boolean print)
      Specified by:
      loadOptions in class BasicGameOptions
    • saveOptions

      public static void saveOptions(Vector<IBasicOption> options)
    • saveOptions

      public static void saveOptions(Vector<IBasicOption> options, String file)
      Saves the given Vector of IBasicOption
      Parameters:
      options - Vector of IBasicOption
      file - string with the name of the file
    • getOptionsInfoImp

      protected AbstractOptionsInfo getOptionsInfoImp()
      Specified by:
      getOptionsInfoImp in class AbstractOptions
    • writeToXML

      public void writeToXML(PrintWriter pw, int indent)
      This is used by MekHQ to write the game options to the standard file
      Parameters:
      pw - the PrintWriter to write to
      indent - the indent to write at
    • fillFromXML

      public void fillFromXML(NodeList nl)
      This is used to fill a GameOptions object from an XML node list written using writeToXML.
      Parameters:
      nl - the node list to parse