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/nebular/core/conversations.h"
35 #include "mads/nebular/core/dialogs.h"
36 #include "mads/nebular/core/events.h"
37 #include "mads/nebular/core/font.h"
38 #include "mads/nebular/core/game.h"
39 #include "mads/nebular/core/screen.h"
40 #include "mads/nebular/core/msurface.h"
41 #include "mads/nebular/core/resources.h"
42 #include "mads/nebular/sound_nebular.h"
43 
44 namespace MADS {
45 namespace Nebular {
46 
47 #define DEBUG_BASIC 1
48 #define DEBUG_INTERMEDIATE 2
49 #define DEBUG_DETAILED 3
50 
52 private:
56  void initialize();
57 
58  void loadOptions();
59 
60 protected:
61  // Engine APIs
62  Common::Error run() override;
63 
64 public:
65  Debugger *_debugger;
66  Dialogs *_dialogs;
67  EventsManager *_events;
68  Font *_font;
69  Game *_game;
70  GameConversations *_gameConv;
71  Palette *_palette;
72  Resources *_resources;
73  Screen *_screen;
74  SoundManager *_sound;
75  AudioPlayer *_audio;
76  bool _easyMouse;
77  bool _invObjectsAnimated;
78  bool _textWindowStill;
79  ScreenFade _screenFade;
80  bool _musicFlag;
81  bool _soundFlag;
82  bool _dithering;
83  bool _disableFastwalk;
84 public:
85  RexNebularEngine(OSystem *syst, const MADSGameDescription *gameDesc);
86  ~RexNebularEngine() override;
87 
91  bool canLoadGameStateCurrently(Common::U32String *msg = nullptr) override;
92 
96  bool canSaveGameStateCurrently(Common::U32String *msg = nullptr) override;
97 
101  Common::Error loadGameState(int slot) override;
102 
106  Common::Error saveGameState(int slot, const Common::String &desc, bool isAutosave = false) override;
107 
111  void syncSoundSettings() override;
112 
113  void saveOptions();
114 };
115 
116 } // namespace Nebular
117 } // namespace MADS
118 
119 #endif
bool canSaveGameStateCurrently(Common::U32String *msg=nullptr) override
Common::Error loadGameState(int slot) override
Definition: screen.h:210
Definition: str.h:59
Definition: audio.h:41
Definition: nebular.h:51
Definition: error.h:81
Definition: debugger.h:33
Definition: resources.h:44
Common::Error run() override
Definition: font.h:48
Definition: ustr.h:57
Definition: dialogs.h:240
Definition: sound_manager.h:90
Definition: detection.h:41
Definition: mads.h:68
Common::Error saveGameState(int slot, const Common::String &desc, bool isAutosave=false) override
Definition: mps_installer.h:31
Definition: system.h:165
bool canLoadGameStateCurrently(Common::U32String *msg=nullptr) override
Definition: palette.h:266
Definition: conversations.h:323
Definition: game.h:64
Definition: events.h:53