ScummVM API documentation
sword25.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 SWORD25_SWORD25_H
23#define SWORD25_SWORD25_H
24
25#include "common/scummsys.h"
26#include "engines/engine.h"
27
28#include "sword25/console.h"
29#include "sword25/detection.h"
30
31namespace Common {
32class Error;
33}
34
35namespace GUI {
36class Debugger;
37}
38
40
49namespace Sword25 {
50
51enum {
52 kFileTypeHash = 0
53};
54
55enum {
56 kDebugScript = 1,
57 kDebugSound,
58 kDebugInternalDebugger,
59 kDebugResource,
60};
61
62#define MESSAGE_BASIC 1
63#define MESSAGE_INTERMEDIATE 2
64#define MESSAGE_DETAILED 3
65
66class Sword25Engine : public Engine {
67private:
68 Common::Error appStart();
69 bool appMain();
70 bool appEnd();
71
72 bool loadPackages();
73
74protected:
75 Common::Error run() override;
76 bool hasFeature(EngineFeature f) const override;
77// void pauseEngineIntern(bool pause); // TODO: Implement this!!!
78// void syncSoundSettings(); // TODO: Implement this!!!
79// Common::Error loadGameState(int slot); // TODO: Implement this?
80// Common::Error saveGameState(int slot, const Common::String &desc, bool isAutosave = false); // TODO: Implement this?
81// bool canLoadGameStateCurrently(); // TODO: Implement this?
82// bool canSaveGameStateCurrently(); // TODO: Implement this?
83
84 void shutdown();
85
86public:
87 Sword25Engine(OSystem *syst, const ADGameDescription *gameDesc);
88 ~Sword25Engine() override;
89
90 uint32 getGameFlags() const;
91
92 const ADGameDescription *_gameDescription;
93};
94
95} // End of namespace Sword25
96
97#endif
Definition: error.h:81
Definition: engine.h:149
EngineFeature
Definition: engine.h:282
Definition: system.h:166
Definition: sword25.h:66
bool hasFeature(EngineFeature f) const override
Common::Error run() override
Definition: algorithm.h:29
Definition: console.h:27
Definition: advancedDetector.h:164