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 "mads/mads.h"
26 
27 namespace MADS {
28 namespace RexNebular {
29 
31  uint8 _version;
32  Common::String _saveName;
33  Graphics::Surface *_thumbnail;
34  int _year, _month, _day;
35  int _hour, _minute;
36  int _totalFrames;
37 
38  void readSavegameHeader(Common::SeekableReadStream *src);
39  void writeSavegameHeader(Common::WriteStream *dest);
40 };
41 
42 class RexNebularEngine : public MADSEngine {
43 private:
44  void showRecipe();
45 
46 public:
47  RexNebularEngine(OSystem *syst, const MADSGameDescription *gameDesc);
48  ~RexNebularEngine() override {}
49 
50  Common::Error run() override;
51  void syncRoom(Common::Serializer &s) override;
52 
53  int main_copy_verify() override;
54  void global_init_code() override;
55  void section_music(int section_num) override;
56  void global_section_constructor() override;
57  void global_daemon_code() override;
58  void global_verb_filter() override;
59  void global_pre_parser_code() override;
60  void global_parser_code() override;
61  void global_error_code() override;
62  void global_room_init() override {}
63  void global_sound_driver() override;
64 };
65 
66 } // namespace RexNebular
67 } // namespace MADS
68 
69 #endif
Definition: str.h:59
Definition: surface.h:67
Definition: stream.h:77
Definition: error.h:81
Definition: stream.h:745
Definition: serializer.h:80
Definition: nebular.h:30
Definition: nebular.h:42
Definition: detection.h:41
Definition: mads.h:69
Definition: anim_timer.h:27
Definition: system.h:166