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 ALCACHOFA_DETECTION_H
23 #define ALCACHOFA_DETECTION_H
24 
25 #include "engines/advancedDetector.h"
26 
27 namespace Alcachofa {
28 
29 enum AlcachofaDebugChannels {
30  kDebugGraphics = 1,
31  kDebugScript,
32  kDebugGameplay,
33  kDebugSounds,
34  kDebugSemaphores
35 };
36 
37 enum class EngineVersion {
38  V1_0 = 10, // edicion orginal, vaqueros and terror
39  V2_0 = 20, // the rest
40  V3_0 = 30, // Remastered movie adventure (used for original spanish release)
41  V3_1 = 31, // Remastered movie adventure (for german release and english/spanish steam release)
42 };
43 
46 
47  ADGameDescription desc;
48 
49  EngineVersion engineVersion;
50 
51  inline bool isVersionBetween(int min, int max) const {
52  int intVersion = (int)engineVersion;
53  return intVersion >= min && intVersion <= max;
54  }
55 };
56 
57 extern const PlainGameDescriptor alcachofaGames[];
58 
59 extern const AlcachofaGameDescription gameDescriptions[];
60 
61 #define GAMEOPTION_HIGH_QUALITY GUIO_GAMEOPTIONS1 // I should comment what this does, but I don't know
62 #define GAMEOPTION_32BITS GUIO_GAMEOPTIONS2
63 
64 } // End of namespace Alcachofa
65 
66 class AlcachofaMetaEngineDetection : public AdvancedMetaEngineDetection<Alcachofa::AlcachofaGameDescription> {
67  static const DebugChannelDef debugFlagList[];
68 
69 public:
71  ~AlcachofaMetaEngineDetection() override {}
72 
73  const char *getName() const override {
74  return "alcachofa";
75  }
76 
77  const char *getEngineName() const override {
78  return "Alcachofa";
79  }
80 
81  const char *getOriginalCopyright() const override {
82  return "Alcachofa Soft (C)";
83  }
84 
85  const DebugChannelDef *getDebugChannels() const override {
86  return debugFlagList;
87  }
88 };
89 
90 #endif // ALCACHOFA_DETECTION_H
Definition: alcachofa.h:45
Definition: advancedDetector.h:611
Definition: advancedDetector.h:164
const char * getOriginalCopyright() const override
Definition: detection.h:81
Definition: game.h:49
Definition: detection.h:66
Definition: debug-channels.h:36
const DebugChannelDef * getDebugChannels() const override
Definition: detection.h:85
const char * getName() const override
Definition: detection.h:73
#define AD_GAME_DESCRIPTION_HELPERS(field)
Definition: advancedDetector.h:256
const char * getEngineName() const override
Definition: detection.h:77
Definition: detection.h:44