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 // toggles some special effect objects
62 #define GAMEOPTION_32BITS GUIO_GAMEOPTIONS2 // renders in 16/32 bit color
63 #define GAMEOPTION_TEXTURE_FILTER GUIO_GAMEOPTIONS3 // toggles texture filters
64 
65 } // End of namespace Alcachofa
66 
67 class AlcachofaMetaEngineDetection : public AdvancedMetaEngineDetection<Alcachofa::AlcachofaGameDescription> {
68  static const DebugChannelDef debugFlagList[];
69 
70 public:
72  ~AlcachofaMetaEngineDetection() override {}
73 
74  const char *getName() const override {
75  return "alcachofa";
76  }
77 
78  const char *getEngineName() const override {
79  return "Alcachofa";
80  }
81 
82  const char *getOriginalCopyright() const override {
83  return "Alcachofa Soft (C)";
84  }
85 
86  const DebugChannelDef *getDebugChannels() const override {
87  return debugFlagList;
88  }
89 };
90 
91 #endif // ALCACHOFA_DETECTION_H
Definition: alcachofa.h:45
Definition: advancedDetector.h:611
Definition: advancedDetector.h:164
const char * getOriginalCopyright() const override
Definition: detection.h:82
Definition: game.h:49
Definition: detection.h:67
Definition: debug-channels.h:36
const DebugChannelDef * getDebugChannels() const override
Definition: detection.h:86
const char * getName() const override
Definition: detection.h:74
#define AD_GAME_DESCRIPTION_HELPERS(field)
Definition: advancedDetector.h:256
const char * getEngineName() const override
Definition: detection.h:78
Definition: detection.h:44