ScummVM API documentation
detection.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 MACS2_DETECTION_H
23 #define MACS2_DETECTION_H
24 
25 #include "engines/advancedDetector.h"
26 
27 namespace Macs2 {
28 
29 enum Macs2DebugChannels {
30  kDebugGraphics = 1 << 0,
31  kDebugPath = 1 << 1,
32  kDebugScan = 1 << 2,
33  kDebugFilePath = 1 << 3,
34  kDebugInput = 1 << 4,
35  kDebugScript = 1 << 5,
36 };
37 
38 enum Macs2Action {
39  kMacs2ActionNone,
40  kMacs2ActionInteract,
41  kMacs2ActionCursorMode,
42  kMacs2ActionSkip,
43  kMacs2ActionInventory,
44  kMacs2ActionMenu,
45  kMacs2ActionGameSpeed,
46  kMacs2ActionOpenGMM,
47  kMacs2ActionHelp,
48 };
49 
50 extern const PlainGameDescriptor macs2Games[];
51 
52 extern const ADGameDescription gameDescriptions[];
53 
54 #define GAMEOPTION_ORIGINAL_SAVELOAD GUIO_GAMEOPTIONS1
55 #define GAMEOPTION_TTS GUIO_GAMEOPTIONS2
56 #define GAMEOPTION_ENHANCEMENTS GUIO_GAMEOPTIONS3
57 
58 enum {
59  GF_TRANSLATED = 1 << 0,
60 };
61 
62 } // End of namespace Macs2
63 
64 class Macs2MetaEngineDetection : public AdvancedMetaEngineDetection<ADGameDescription> {
65  static const DebugChannelDef debugFlagList[];
66 
67 public:
70 
71  const char *getName() const override {
72  return "macs2";
73  }
74 
75  const char *getEngineName() const override {
76  return "Macs2";
77  }
78 
79  const char *getOriginalCopyright() const override {
80  return "Macs2 (C)";
81  }
82 
83  const DebugChannelDef *getDebugChannels() const override {
84  return debugFlagList;
85  }
86 };
87 
88 #endif // MACS2_DETECTION_H
Definition: advancedDetector.h:612
Definition: advancedDetector.h:164
Definition: game.h:49
const DebugChannelDef * getDebugChannels() const override
Definition: detection.h:83
Definition: debug-channels.h:36
const char * getName() const override
Definition: detection.h:71
Definition: debugtools.h:25
const char * getEngineName() const override
Definition: detection.h:75
Definition: detection.h:64
const char * getOriginalCopyright() const override
Definition: detection.h:79