ScummVM API documentation
mohawk.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 MOHAWK_MOHAWK_H
23#define MOHAWK_MOHAWK_H
24
25#include "common/scummsys.h"
26#include "common/array.h"
27
28#include "engines/engine.h"
29
30#include "mohawk/detection.h"
31
32class OSystem;
33
34namespace Common {
35class SeekableReadStream;
36}
37
47namespace Mohawk {
48
49class Sound;
50class PauseDialog;
51class Archive;
52class CursorManager;
53
54class MohawkEngine : public ::Engine {
55protected:
56 Common::Error run() override;
57
58public:
59 MohawkEngine(OSystem *syst, const MohawkGameDescription *gamedesc);
60 ~MohawkEngine() override;
61
62 // Detection related functions
63 const MohawkGameDescription *_gameDescription;
64 const char *getGameId() const;
65 uint32 getFeatures() const;
66 bool isGameVariant(MohawkGameFeatures feature) const;
67 const char *getAppName() const;
68 Common::Platform getPlatform() const;
69 uint8 getGameType() const;
70 virtual Common::Language getLanguage() const;
71
72 bool hasFeature(EngineFeature f) const override;
73
74 CursorManager *_cursor;
75
76 virtual Common::SeekableReadStream *getResource(uint32 tag, uint16 id);
77 bool hasResource(uint32 tag, uint16 id);
78 bool hasResource(uint32 tag, const Common::String &resName);
79 uint32 getResourceOffset(uint32 tag, uint16 id);
80 uint16 findResourceID(uint32 type, const Common::String &resName);
81 Common::String getResourceName(uint32 tag, uint16 id);
82 void closeAllArchives();
83
84 void pauseGame();
85
86private:
87 PauseDialog *_pauseDialog;
88
89protected:
90 // An array holding the main Mohawk archives require by the games
92};
93
94} // End of namespace Mohawk
95
96#endif
Definition: error.h:81
Definition: stream.h:745
Definition: str.h:59
Definition: engine.h:155
EngineFeature
Definition: engine.h:293
Definition: cursors.h:53
Definition: mohawk.h:54
bool hasFeature(EngineFeature f) const override
Common::Error run() override
Definition: dialogs.h:73
Definition: system.h:166
Language
Definition: language.h:45
Platform
Definition: platform.h:93
Definition: algorithm.h:29
Definition: bitmap.h:32
Definition: detection.h:65