ScummVM API documentation
config.h
1/* ScummVM - Graphic Adventure Engine
2 *
3 * ScummVM is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the COPYRIGHT
5 * file distributed with this source distribution.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22#ifndef ASYLUM_SYSTEM_CONFIG_H
23#define ASYLUM_SYSTEM_CONFIG_H
24
25#include "common/array.h"
26#include "common/singleton.h"
27#include "common/config-manager.h"
28
29namespace Asylum {
30
37class ConfigurationManager: public Common::Singleton<ConfigurationManager> {
38public:
39
41 // Normal configuration
43
44 // Default options
45 int32 musicVolume;
46 int32 sfxVolume;
47 int32 voiceVolume;
48 bool showMovieSubtitles;
49
50 // Engine options
51 bool showEncounterSubtitles;
52 int gammaLevel;
53 int32 ambientVolume;
54 int32 movieVolume;
55 bool musicStatus; // On or Off
56 bool reverseStereo;
58 int animationsSpeed;
59 char keyShowVersion;
60 char keyQuickSave;
61 char keyQuickLoad;
62 char keySwitchToSara;
63 char keySwitchToGrimwall;
64 char keySwitchToOlmec;
65
67 // Misc configuration options (not shown in GUI)
69
70 // This will play the scene title loading up progress before the scene is entered.
71 // This is just a convenience, as there's no need for the type of pre-loading that
72 // was performed in the original
73 bool showSceneLoading;
74
75 // This option will prevent the intro movies from being played whenever the engine is started
76 bool showIntro;
77
81 void read();
82
86 void write();
87
95 bool isKeyAssigned(char key) const;
96
97private:
98 friend class Common::Singleton<SingletonBaseType>;
99
101 virtual ~ConfigurationManager();
102
103};
104
105#define Config (::Asylum::ConfigurationManager::instance())
106
107} // end of namespace Asylum
108
109#endif // ASYLUM_SYSTEM_CONFIG_H
Definition: config.h:37
bool isKeyAssigned(char key) const
int performance
performance only affects sound: perf > 0 ? 22050hz/16bit : 11025hz/8bit
Definition: config.h:57
Definition: singleton.h:42