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