TABLE OF CONTENTS


Config/Config [ Packages ]

[ Top ] [ Packages ]

FUNCTION

 Provide code for load and save the game configuration

SOURCE

package Config is

Config/Config.Auto_Move_Break [ Types ]

[ Top ] [ Config ] [ Types ]

FUNCTION

 Options when stop auto move of player ship

SOURCE

   type Auto_Move_Break is (NEVER, ANY, FRIENDLY, ENEMY) with
      Default_Value => NEVER;

Config/Config.Auto_Save_Type [ Types ]

[ Top ] [ Config ] [ Types ]

FUNCTION

 Type used to set how often autosave is done

SOURCE

   type Auto_Save_Type is (NONE, DOCK, UNDOCK, DAILY, MONTHLY, YEARLY) with
      Default_Value => NONE;

Config/Config.Bonus_Type [ Types ]

[ Top ] [ Config ] [ Types ]

FUNCTION

 Used to store the game difficulty settings

SOURCE

   subtype Bonus_Type is Float range 0.0 .. 5.0;

Config/Config.Difficulty_Type [ Types ]

[ Top ] [ Config ] [ Types ]

FUNCTION

 Used to set the game difficulty level

SOURCE

   type Difficulty_Type is
     (VERY_EASY, EASY, NORMAL, HARD, VERY_HARD, CUSTOM) with
      Default_Value => NORMAL;

Config/Config.Font_Types [ Types ]

[ Top ] [ Config ] [ Types ]

FUNCTION

 Types of fonts, used ot set their size

SOURCE

   type Font_Types is (HELPFONT, INTERFACEFONT, MAPFONT) with
      Default_Value => HELPFONT;

HISTORY

 7.1 - Added

Config/Config.Messages_Order_Type [ Types ]

[ Top ] [ Config ] [ Types ]

FUNCTION

 Options to set showing messages order

SOURCE

   type Messages_Order_Type is (OLDER_FIRST, NEWER_FIRST) with
      Default_Value => OLDER_FIRST;

Config/Config.Default_Auto_Move_Stop [ Constants ]

[ Top ] [ Config ] [ Constants ]

FUNCTION

 Default setting for stop automovement of the player ship

SOURCE

   Default_Auto_Move_Stop: constant Auto_Move_Break := NEVER;

Config/Config.Default_Auto_Save_Time [ Constants ]

[ Top ] [ Config ] [ Constants ]

FUNCTION

 Default time when to auto save the game

SOURCE

   Default_Auto_Save_Time: constant Auto_Save_Type := NONE;

Config/Config.Default_Difficulty_Type [ Constants ]

[ Top ] [ Config ] [ Constants ]

FUNCTION

 Default difficulty level for the game

SOURCE

   Default_Difficulty_Type: constant Difficulty_Type := NORMAL;

Config/Config.Default_Messages_Order [ Constants ]

[ Top ] [ Config ] [ Constants ]

FUNCTION

 Default order of show the last messages

SOURCE

   Default_Messages_Order: constant Messages_Order_Type := OLDER_FIRST;

Config/Config.Help_Font_Type [ Constants ]

[ Top ] [ Config ] [ Constants ]

FUNCTION

 Default type of font used when setting them

SOURCE

   Help_Font_Type: constant Font_Types := HELPFONT;

HISTORY

 7.8 - Added

Config/Config.Load_Config [ Subprograms ]

[ Top ] [ Config ] [ Subprograms ]

FUNCTION

 Load game configuration from file

SOURCE

   procedure Load_Config;

Config/Config.SaveConfig [ Subprograms ]

[ Top ] [ Config ] [ Subprograms ]

FUNCTION

 Save game configuration to file

SOURCE

   procedure Save_Config;