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