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
27namespace Alcachofa {
28
29enum AlcachofaDebugChannels {
30 kDebugGraphics = 1,
31 kDebugScript,
32 kDebugGameplay,
33 kDebugSounds,
34 kDebugSemaphores
35};
36
37enum class EngineVersion {
38 V1_0 = 10, // edicion orginal, vaqueros and terror
39 V2_0 = 20, // secta, moscu and escarabajo
40 V2_1 = 21, // corvino, balones and mamelucos
41 V3_0 = 30, // Remastered movie adventure (used for original spanish release)
42 V3_1 = 31, // Remastered movie adventure (for german release and english/spanish steam release)
43};
44
46 AD_GAME_DESCRIPTION_HELPERS(desc);
47
49
50 EngineVersion engineVersion;
51
52 inline bool isVersionBetween(int min, int max) const {
53 int intVersion = (int)engineVersion;
54 return intVersion >= min && intVersion <= max;
55 }
56};
57
58extern const PlainGameDescriptor alcachofaGames[];
59
60extern const AlcachofaGameDescription gameDescriptions[];
61
62#define GAMEOPTION_HIGH_QUALITY GUIO_GAMEOPTIONS1 // toggles some special effect objects
63#define GAMEOPTION_32BITS GUIO_GAMEOPTIONS2 // renders in 16/32 bit color
64#define GAMEOPTION_TEXTURE_FILTER GUIO_GAMEOPTIONS3 // toggles texture filters
65
66} // End of namespace Alcachofa
67
68class AlcachofaMetaEngineDetection : public AdvancedMetaEngineDetection<Alcachofa::AlcachofaGameDescription> {
69 static const DebugChannelDef debugFlagList[];
70
71public:
74
75 const char *getName() const override {
76 return "alcachofa";
77 }
78
79 const char *getEngineName() const override {
80 return "Alcachofa";
81 }
82
83 const char *getOriginalCopyright() const override {
84 return "Alcachofa Soft (C)";
85 }
86
87 const DebugChannelDef *getDebugChannels() const override {
88 return debugFlagList;
89 }
90};
91
92#endif // ALCACHOFA_DETECTION_H
Definition: advancedDetector.h:611
Definition: detection.h:68
const DebugChannelDef * getDebugChannels() const override
Definition: detection.h:87
const char * getOriginalCopyright() const override
Definition: detection.h:83
const char * getName() const override
Definition: detection.h:75
const char * getEngineName() const override
Definition: detection.h:79
Definition: advancedDetector.h:164
Definition: detection.h:45
Definition: debug-channels.h:36
Definition: game.h:49