This class contains the engine's configuration read either from the config file or from the command line.
More...
Public Member Functions |
| config () |
| Constructor.
|
void | parse_arguments (int argc, char *argv[]) |
| See whether any options have been specified on the command line.
|
void | write_adonthellrc () |
| Writes a default configuration file with the values set in the constructor.
|
bool | read_adonthellrc () |
| Reads the configuration file.
|
char * | get_adonthellrc () |
| Returns the path to the user's private Adonthell directory.
|
Public Attributes |
|
|
string | language |
| Language to use if NLS was compiled in.
|
string | font |
string | game_name |
| Name of the game that is running at present.
|
string | gamedir |
| Path of the directory that contains the game running at present.
|
u_int8 | screen_mode |
| Whether the engine shall run in window (0) or fullscreen (1) mode.
|
u_int8 | double_screen |
u_int8 | quick_load |
| Whether the quick-load feature is enabled (1) or not (0)
|
u_int8 | audio_channels |
| The number of channels: mono (0) or stereo (1).
|
u_int8 | audio_resolution |
| The resolution: 8 bit (0) or 16 bit (1)
|
u_int8 | audio_sample_rate |
| The sample rate: 11025 Hz (0), 22050 Hz (1) or 44100 Hz (2)
|
u_int8 | audio_volume |
| The volume: a value betwen 0 and 100.
|
This class contains the engine's configuration read either from the config file or from the command line.
Definition at line 70 of file prefs.h.