ScummVM API documentation
tattoo.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 SHERLOCK_TATTOO_H
23 #define SHERLOCK_TATTOO_H
24 
25 #include "sherlock/sherlock.h"
26 #include "sherlock/tattoo/tattoo_darts.h"
27 #include "sherlock/tattoo/widget_foolscap.h"
28 
29 namespace Sherlock {
30 
31 namespace Tattoo {
32 
33 enum {
34  INV_FOREGROUND = 167,
35  INV_BACKGROUND = 1,
36  INFO_FOREGROUND = 233,
37  INFO_BACKGROUND = 239,
38  INFO_TOP = 185,
39  INFO_MIDDLE = 186,
40  INFO_BOTTOM = 188,
41  MENU_BACKGROUND = 225,
42  COMMAND_FOREGROUND = 15,
43  COMMAND_HIGHLIGHTED = 254,
44  COMMAND_NULL = 193,
45  PEN_COLOR = 248,
46  PEN_HIGHLIGHT_COLOR = 129
47 };
48 
49 enum {
50  FLAG_PLAYER_IS_HOLMES = 76,
51  FLAG_ALT_MAP_MUSIC = 525
52 };
53 
54 class TattooEngine : public SherlockEngine {
55 private:
56  Darts _darts;
57  WidgetFoolscap _foolscapWidget;
58 
62  void loadInitialPalette();
63 
67  void loadInventory();
68 protected:
72  void initialize() override;
73 
74  void showOpening() override;
75 
79  void startScene() override;
80 
84  void loadConfig() override;
85 public:
86  bool _runningProlog;
87  bool _fastMode, _allowFastMode;
88  bool _transparentMenus;
89  bool _textWindowsOn;
90 public:
91  TattooEngine(OSystem *syst, const SherlockGameDescription *gameDesc);
92  ~TattooEngine() override;
93 
97  void doFoolscapPuzzle();
98 
102  void saveConfig() override;
103 
107  bool canLoadGameStateCurrently(Common::U32String *msg = nullptr) override;
108 
112  bool canSaveGameStateCurrently(Common::U32String *msg = nullptr) override;
113 };
114 
115 } // End of namespace Tattoo
116 
117 } // End of namespace Sherlock
118 
119 #endif
Definition: detection.h:34
Definition: tattoo.h:54
Definition: animation.h:29
bool canLoadGameStateCurrently(Common::U32String *msg=nullptr) override
Definition: ustr.h:57
Definition: sherlock.h:76
bool canSaveGameStateCurrently(Common::U32String *msg=nullptr) override
Definition: widget_foolscap.h:34
Definition: tattoo_darts.h:36
Definition: system.h:167