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
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (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, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20  *
21  */
22 
23 #ifndef ACCESS_MARTIAN_GAME_H
24 #define ACCESS_MARTIAN_GAME_H
25 
26 #include "access/access.h"
27 
28 namespace Access {
29 
30 namespace Martian {
31 
32 class MartianEngine : public AccessEngine {
33 private:
34 	bool _skipStart;
35 	SpriteResource *_introObjects;
36 	Common::MemoryReadStream *_creditsStream;
37 	/**
38 	 * Do the game introduction
39 	 */
40 	void doCredits();
41 
42 	bool showCredits();
43 
44 	/**
45 	 * Setup variables for the game
46 	 */
47 	void setupGame();
48 
49 	void initObjects();
50 	void configSelect();
51 	void initVariables();
52 protected:
53 	/**
54 	 * Play the game
55 	 */
56 	virtual void playGame();
57 
58 	virtual void dead(int deathId);
59 
60 	void setNoteParams();
61 	void displayNote(const Common::String &msg);
62 public:
63 	SpriteResource *_spec7Objects;
64 
65 	MartianEngine(OSystem *syst, const AccessGameDescription *gameDesc);
66 	virtual ~MartianEngine();
67 
68 	void doSpecial5(int param1);
69 	void showDeathText(Common::String msg);
establish(int esatabIndex,int sub)70 	virtual void establish(int esatabIndex, int sub) {};
71 };
72 
73 } // End of namespace Martian
74 
75 } // End of namespace Access
76 
77 #endif /* ACCESS_MARTIAN_GAME_H */
78