ScummVM API documentation
metaengine.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 SCUMM_METAENGINE_H
23 #define SCUMM_METAENGINE_H
24 
25 #include "engines/metaengine.h"
26 
27 class ScummMetaEngine : public MetaEngine {
28  const char *getName() const override;
29 
30  bool hasFeature(MetaEngineFeature f) const override;
31 
32  Common::Error createInstance(OSystem *syst, Engine **engine,
33  const DetectedGame &gameDescriptor, const void *metaEngineDescriptor) override;
34 
35  SaveStateList listSaves(const char *target) const override;
36  int getMaximumSaveSlot() const override;
37  bool removeSaveState(const char *target, int slot) const override;
38  SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const override;
39 
40  const ExtraGuiOptions getExtraGuiOptions(const Common::String &target) const override;
41  void registerDefaultSettings(const Common::String &) const override;
42 
43  GUI::OptionsContainerWidget *buildEngineOptionsWidget(GUI::GuiObject *boss, const Common::String &name, const Common::String &target) const override;
44 
45  Common::KeymapArray initKeymaps(const char *target) const override;
46 
47 private:
48  GUI::OptionsContainerWidget *buildLoomOptionsWidget(GUI::GuiObject *boss, const Common::String &name, const Common::String &target) const;
49  GUI::OptionsContainerWidget *buildMI1OptionsWidget(GUI::GuiObject *boss, const Common::String &name, const Common::String &target) const;
50 };
51 
52 #endif // SCUMM_METAENGINE_H
Definition: metaengine.h:196
Definition: str.h:59
MetaEngineFeature
Definition: metaengine.h:413
Definition: error.h:84
Definition: game.h:147
Definition: object.h:60
Definition: widget.h:532
Definition: savestate.h:56
Definition: metaengine.h:27
Definition: system.h:161
Definition: engine.h:144