ScummVM API documentation
nebular.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 MADS_NEBULAR_H
23 #define MADS_NEBULAR_H
24 
25 #include "common/scummsys.h"
26 #include "common/system.h"
27 #include "common/error.h"
28 #include "common/random.h"
29 #include "common/util.h"
30 #include "engines/engine.h"
31 #include "graphics/surface.h"
32 #include "mads/mads.h"
33 #include "mads/nebular/debugger.h"
34 #include "mads/core/conversations.h"
35 #include "mads/core/dialogs.h"
36 #include "mads/core/events.h"
37 #include "mads/core/font.h"
38 #include "mads/core/game.h"
39 #include "mads/core/screen.h"
40 #include "mads/core/msurface.h"
41 #include "mads/core/resources.h"
42 #include "mads/core/sound.h"
43 
44 namespace MADS {
45 
46 #define DEBUG_BASIC 1
47 #define DEBUG_INTERMEDIATE 2
48 #define DEBUG_DETAILED 3
49 
50 class RexNebularEngine : public MADSEngine {
51 private:
55  void initialize();
56 
57  void loadOptions();
58 
59 protected:
60  // Engine APIs
61  Common::Error run() override;
62 
63 public:
64  Debugger *_debugger;
65  Dialogs *_dialogs;
66  EventsManager *_events;
67  Font *_font;
68  Game *_game;
69  GameConversations * _gameConv;
70  Palette *_palette;
71  Resources *_resources;
72  Screen *_screen;
73  SoundManager *_sound;
74  AudioPlayer *_audio;
75  bool _easyMouse;
76  bool _invObjectsAnimated;
77  bool _textWindowStill;
78  ScreenFade _screenFade;
79  bool _musicFlag;
80  bool _soundFlag;
81  bool _dithering;
82  bool _disableFastwalk;
83 public:
84  RexNebularEngine(OSystem *syst, const MADSGameDescription *gameDesc);
85  ~RexNebularEngine() override;
86 
90  bool canLoadGameStateCurrently(Common::U32String *msg = nullptr) override;
91 
95  bool canSaveGameStateCurrently(Common::U32String *msg = nullptr) override;
96 
100  Common::Error loadGameState(int slot) override;
101 
105  Common::Error saveGameState(int slot, const Common::String &desc, bool isAutosave = false) override;
106 
110  void syncSoundSettings() override;
111 
112  void saveOptions();
113 };
114 
115 } // namespace MADS
116 
117 #endif
Definition: str.h:59
Common::Error run() override
Definition: events.h:47
Definition: error.h:81
Common::Error loadGameState(int slot) override
Definition: dialogs.h:238
Definition: resources.h:43
Definition: screen.h:209
Definition: nebular.h:50
Definition: debugger.h:32
Definition: ustr.h:57
Definition: sound.h:42
bool canLoadGameStateCurrently(Common::U32String *msg=nullptr) override
Definition: detection.h:41
Common::Error saveGameState(int slot, const Common::String &desc, bool isAutosave=false) override
Definition: mads.h:68
Definition: font.h:47
void syncSoundSettings() override
Definition: audio.h:40
Definition: game.h:63
Definition: action.h:28
Definition: system.h:164
Definition: conversations.h:310
Definition: palette.h:247
bool canSaveGameStateCurrently(Common::U32String *msg=nullptr) override