ScummVM API documentation
martian_game.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 ACCESS_MARTIAN_GAME_H
23 #define ACCESS_MARTIAN_GAME_H
24 
25 #include "access/access.h"
26 
27 namespace Access {
28 
29 namespace Martian {
30 
31 class MartianEngine : public AccessEngine {
32 private:
33  bool _skipStart;
34  Common::MemoryReadStream *_creditsStream;
35 
39  void doCredits();
40 
41  bool showCredits();
42 
46  void setupGame();
47 
48  void initObjects();
49  void configSelect();
50  void initVariables();
51  void setupTimers();
52 protected:
56  void playGame() override;
57 
58  void dead(int deathId) override;
59 
60  void setNoteParams();
61  void displayNote(const Common::String &msg);
62 public:
63  MartianEngine(OSystem *syst, const AccessGameDescription *gameDesc);
64  ~MartianEngine() override;
65 
66  void doSpecial5(int param1);
67  void showExpositionText(Common::String msg);
68  void establish(int estabIndex, int sub) override;
69 
73  void synchronize(Common::Serializer &s) override;
74 };
75 
76 } // End of namespace Martian
77 
78 } // End of namespace Access
79 
80 #endif /* ACCESS_MARTIAN_GAME_H */
Definition: detection.h:35
Definition: str.h:59
Definition: access.h:139
Definition: martian_game.h:31
void synchronize(Common::Serializer &s) override
Definition: serializer.h:79
Definition: memstream.h:43
Definition: system.h:163
Definition: access.h:62