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  SpriteResource *_introObjects;
35  Common::MemoryReadStream *_creditsStream;
39  void doCredits();
40 
41  bool showCredits();
42 
46  void setupGame();
47 
48  void initObjects();
49  void configSelect();
50  void initVariables();
51 protected:
55  void playGame() override;
56 
57  void dead(int deathId) override;
58 
59  void setNoteParams();
60  void displayNote(const Common::String &msg);
61 public:
62  SpriteResource *_spec7Objects;
63 
64  MartianEngine(OSystem *syst, const AccessGameDescription *gameDesc);
65  ~MartianEngine() override;
66 
67  void doSpecial5(int param1);
68  void showDeathText(Common::String msg);
69  void establish(int esatabIndex, int sub) override {};
70 };
71 
72 } // End of namespace Martian
73 
74 } // End of namespace Access
75 
76 #endif /* ACCESS_MARTIAN_GAME_H */
Definition: detection.h:35
Definition: str.h:59
Definition: access.h:84
Definition: martian_game.h:31
Definition: asurface.h:138
Definition: memstream.h:43
Definition: system.h:161
Definition: access.h:62