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 
32 class OSystem;
33 
34 namespace Common {
35 class SeekableReadStream;
36 }
37 
47 namespace Mohawk {
48 
49 class Sound;
50 class PauseDialog;
51 class Archive;
52 class CursorManager;
53 
54 class MohawkEngine : public ::Engine {
55 protected:
56  Common::Error run() override;
57 
58 public:
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 
86 private:
87  PauseDialog *_pauseDialog;
88 
89 protected:
90  // An array holding the main Mohawk archives require by the games
92 };
93 
94 } // End of namespace Mohawk
95 
96 #endif
Definition: dialogs.h:73
Definition: str.h:59
EngineFeature
Definition: engine.h:250
Definition: error.h:84
Definition: array.h:52
Definition: stream.h:745
Definition: cursors.h:53
Definition: algorithm.h:29
Definition: mohawk.h:54
Definition: system.h:167
Definition: engine.h:143
Platform
Definition: platform.h:46
Definition: bitmap.h:32
Definition: detection.h:65
Language
Definition: language.h:45