ScummVM API documentation
amazon_resources.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_RESOURCES_H
23#define ACCESS_AMAZON_RESOURCES_H
24
25#include "common/scummsys.h"
26#include "common/array.h"
27#include "access/resources.h"
28#include "access/font.h"
29
30namespace Access {
31
32namespace Amazon {
33
34enum InventoryEnum {
35 INV_BAITED_POLE = 67, INV_TORCH = 76, INV_KNIFE_SPEAR = 78
36};
37
39 int _id;
40 int _width;
41 int _riverX;
42 int _xp;
43 int _lane;
44 int _offsetY;
45};
46
47extern const int SIDEOFFR[];
48extern const int SIDEOFFL[];
49extern const int SIDEOFFU[];
50extern const int SIDEOFFD[];
51extern const int DIAGOFFURX[];
52extern const int DIAGOFFURY[];
53extern const int DIAGOFFDRX[];
54extern const int DIAGOFFDRY[];
55extern const int DIAGOFFULX[];
56extern const int DIAGOFFULY[];
57extern const int DIAGOFFDLX[];
58extern const int DIAGOFFDLY[];
59
60extern const int _travelPos[][2];
61
62extern const int OVEROFFR[];
63extern const int OVEROFFL[];
64extern const int OVEROFFU[];
65extern const int OVEROFFD[];
66extern const int OVEROFFURX[];
67extern const int OVEROFFURY[];
68extern const int OVEROFFDRX[];
69extern const int OVEROFFDRY[];
70extern const int OVEROFFULX[];
71extern const int OVEROFFULY[];
72extern const int OVEROFFDLX[];
73extern const int OVEROFFDLY[];
74
75extern const int DEATH_CELLS[13][3];
76
77extern const int CHAPTER_CELLS[17][3];
78
79extern const int CHAPTER_TABLE[14][5];
80
81extern const int CHAPTER_JUMP[14];
82
83extern const int COMBO_TABLE[85][4];
84
85extern const int ANTWALK[24];
86
87extern const int ANTEAT[33];
88
89extern const int ANTDIE[21];
90
91extern const int PITWALK[27];
92
93extern const int PITSTAB[21];
94
95extern const int TORCH[12];
96
97extern const int SPEAR[3];
98
99extern const int OPENING_OBJS[10][4];
100
101extern const byte MAP0[26];
102extern const byte MAP1[27];
103extern const byte MAP2[32];
104
105extern const byte *const MAPTBL[3];
106
107extern const int DOWNRIVEROBJ[14][4];
108
109extern RiverStruct RIVER0OBJECTS[46];
110extern RiverStruct RIVER1OBJECTS[50];
111extern RiverStruct RIVER2OBJECTS[54];
112extern RiverStruct *RIVER_OBJECTS[3][2];
113enum { RIVER_START = 0, RIVER_END = 1 };
114
115extern const int HELP1COORDS[2][4];
116
117extern const int RIVER1OBJ[23][4];
118
119extern const int CAST_END_OBJ[26][4];
120extern const int CAST_END_OBJ1[4][4];
121
123protected:
128public:
129 AmazonFont *_font3x5, *_font6x6;
130 Common::String NO_HELP_MESSAGE;
131 Common::String NO_HINTS_MESSAGE;
132 Common::String RIVER_HIT1;
133 Common::String RIVER_HIT2;
134 Common::String BAR_MESSAGE;
135 Common::String HELPLVLTXT[3];
136 Common::String IQLABELS[9];
137
138private:
140
141public:
142 AmazonResources(AccessEngine *vm) : Resources(vm), _font3x5(nullptr), _font6x6(nullptr) {}
143 ~AmazonResources() override;
144
145 const byte *getCursor(int num) const override;
146 const char *getEgoName() const override { return "JASON"; }
147 int getRMouse(int i, int j) const override;
148 int inButtonXRange(int x) const override;
149};
150
151#define AMRES (*((Amazon::AmazonResources *)_vm->_res))
152
153} // End of namespace Amazon
154} // End of namespace Access
155
156#endif /* ACCESS_AMAZON_RESOURCES_H */
Definition: access.h:141
Definition: amazon_resources.h:122
int inButtonXRange(int x) const override
void load(Common::SeekableReadStream &s) override
const byte * getCursor(int num) const override
int getRMouse(int i, int j) const override
const char * getEgoName() const override
Definition: amazon_resources.h:146
Definition: font.h:110
Definition: resources.h:41
Definition: array.h:52
Definition: stream.h:745
Definition: str.h:59
Definition: access.h:62
Definition: amazon_resources.h:38