prefs.h File Reference

Adonthell's configuration. More...

#include <string>
#include <fstream>
#include "types.h"

Include dependency graph for prefs.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  config
 This class contains the engine's configuration read either from the config file or from the command line. More...

Enumerations

enum  {
  PREFS_UNKNOWN = 0, PREFS_SCREEN_MODE = 1, PREFS_LANGUAGE = 2, PREFS_FONT = 3,
  PREFS_QUICK_LOAD = 4, PREFS_AUDIO_CHANNELS = 5, PREFS_AUDIO_RESOLUTION = 6, PREFS_AUDIO_SAMPLE_RATE = 7,
  PREFS_AUDIO_VOLUME = 8, PREFS_VERSION = 9, PREFS_NUM = 10, PREFS_STR = 11,
  PREFS_DOUBLE_SCREEN = 12
}
 Returncodes of the scanner for the different entries of the configuration file. More...

Functions

int parse_adonthellrc (int &, string &)
 Start the lexical scanner to parse the config file, usually fount at ~/.adonthell/adonthellrc.

Variables

FILE * prefsin
 The config file opened by the lexical scanner.


Detailed Description

Adonthell's configuration.

Author:
Kai Sterker

Definition in file prefs.h.


Enumeration Type Documentation

anonymous enum

Returncodes of the scanner for the different entries of the configuration file.

Definition at line 48 of file prefs.h.


Function Documentation

int parse_adonthellrc ( int &  ,
string &   
)

Start the lexical scanner to parse the config file, usually fount at ~/.adonthell/adonthellrc.


Variable Documentation

FILE* prefsin

The config file opened by the lexical scanner.


Generated on Tue Aug 11 15:30:04 2009 for Adonthell by  doxygen 1.5.9