ScummVM API documentation
amazon_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_AMAZON_GAME_H
23#define ACCESS_AMAZON_GAME_H
24
25#include "access/access.h"
26#include "access/amazon/amazon_logic.h"
27
28namespace Access {
29
30namespace Amazon {
31
32class AmazonEngine;
33
34class AmazonEngine : public AccessEngine {
35private:
36 byte _tileData[1455];
37 Common::Array<CellIdent> _chapterCells;
38
42 void setupGame() override;
43
47 void configSelect();
48
49 void initVariables();
50 void initObjects() override;
51 void calcIQ();
52 void helpTitle();
53 void drawHelpText(const Common::String &msg);
54 void loadEstablish(int estabIndex);
55 void doEstablish(int screenId, int estabIndex);
56
57protected:
61 void playGame() override;
62
67
68public:
69 InactivePlayer _inactive;
70 bool _charSegSwitch;
71 byte _help1[366];
72 byte _help2[366];
73 byte _help3[366];
74 byte *_helpTbl[3];
75
76 // Fields that are mapped to flags
77 int &_guardLocation;
78 int &_guardFind;
79 int &_helpLevel;
80 int &_jasMayaFlag;
81 int &_moreHelp;
82 int &_flashbackFlag;
83 int &_riverFlag;
84 int &_aniOutFlag;
85 int &_badEnd;
86 int &_noHints;
87 int &_aniFlag;
88 int &_allenFlag;
89 int &_noSound;
90
91 // Saved fields
92 int _chapter;
93 int _rawInactiveX;
94 int _rawInactiveY;
95 int _inactiveYOff;
96
97 // Other game specific fields
98 Ant *_ant;
99 Cast *_cast;
100 Guard *_guard;
101 Jungle *_jungle;
102 Opening *_opening;
103 Plane *_plane;
104 River *_river;
105 int _hintLevel;
106 int _updateChapter;
107 int _oldTitleChapter;
108 int _iqValue;
109public:
110 AmazonEngine(OSystem *syst, const AccessGameDescription *gameDesc);
111
112 ~AmazonEngine() override;
113
114 void dead(int deathId) override;
115
120
121 void drawHelp(const Common::String &str);
122
123 void establish(int esatabIndex, int sub) override;
124
125 void tileScreen();
126 void updateSummary(int chap);
127 void establishCenter(int screenId, int esatabIndex);
128
132 void startChapter(int chapter);
133};
134
135} // End of namespace Amazon
136
137} // End of namespace Access
138
139#endif /* ACCESS_ACCESS_H */
Definition: access.h:141
Definition: amazon_game.h:34
void startChapter(int chapter)
Common::Error synchronize(Common::Serializer &s) override
Definition: amazon_logic.h:214
Definition: amazon_logic.h:152
Definition: amazon_logic.h:128
Definition: amazon_logic.h:241
Definition: amazon_logic.h:113
Definition: amazon_logic.h:80
Definition: amazon_logic.h:95
Definition: amazon_logic.h:159
Definition: array.h:52
Definition: error.h:81
Definition: serializer.h:80
Definition: str.h:59
Definition: system.h:166
Definition: access.h:62
Definition: detection.h:37