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