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 TINSEL_CONFIG_H
23 #define TINSEL_CONFIG_H
24 
25 #include "tinsel/dw.h"
26 
27 namespace Tinsel {
28 
29 // double click timer initial value
30 enum {
31  DOUBLE_CLICK_TIME = 10, // 10 @ 18Hz = .55 sec
32  DEFTEXTSPEED = 0
33 };
34 
35 class TinselEngine;
36 
37 class Config {
38 private:
39  TinselEngine *_vm;
40 
41 public:
42  int _dclickSpeed;
43  int _musicVolume;
44  int _soundVolume;
45  int _voiceVolume;
46  int _textSpeed;
47  int _useSubtitles;
48  int _swapButtons;
49  LANGUAGE _language;
50  int _isAmericanEnglishVersion;
51 
52 public:
53  Config(TinselEngine *vm);
54 
55  void writeToDisk();
56  void readFromDisk();
57  bool isJapanMode();
58 };
59 
60 } // End of namespace Tinsel
61 
62 #endif
Definition: tinsel.h:141
Definition: config.h:37
Definition: actors.h:36