0
|
1 #pragma once
|
|
2 #include "OSAPI.h"
|
|
3
|
|
4 #include "Texture.h"
|
|
5
|
|
6
|
1183
|
7 /* 401 */
|
0
|
8 #pragma pack(push, 1)
|
1183
|
9 struct Acromage_st1
|
1204
|
10 {
|
|
11 int uCardId;
|
|
12 int field_4;
|
|
13 POINT field_8;
|
|
14 int field_10_xplus;
|
|
15 int field_14_y_plus;
|
|
16 POINT field_18_point;
|
|
17 };
|
0
|
18 #pragma pack(pop)
|
|
19
|
|
20
|
|
21 /* 272 */
|
|
22 #pragma pack(push, 1)
|
|
23 struct ArcomageCard
|
1204
|
24 {
|
|
25 char pCardName[32];
|
|
26 int slot;
|
|
27 char field_24;
|
|
28 char needed_quarry_level;
|
|
29 char needed_magic_level;
|
|
30 char needed_might_level;
|
|
31 char needed_bricks;
|
|
32 char needed_gems;
|
|
33 char needed_beasts;
|
1263
|
34 char can_be_discarded;
|
1245
|
35 int compare_param;
|
1204
|
36 char field_30;
|
1263
|
37 char draw_extra_card_count;
|
1245
|
38 char to_player_quarry_lvl;
|
|
39 char to_player_magic_lvl;
|
|
40 char to_player_zoo_lvl;
|
|
41 char to_player_bricks;
|
|
42 char to_player_gems;
|
|
43 char to_player_beasts;
|
|
44 char to_player_buildings;
|
|
45 char to_player_wall;
|
|
46 char to_player_tower;
|
|
47 char to_enemy_quarry_lvl;
|
|
48 char to_enemy_magic_lvl;
|
|
49 char to_enemy_zoo_lvl;
|
|
50 char to_enemy_bricks;
|
|
51 char to_enemy_gems;
|
|
52 char to_enemy_beasts;
|
|
53 char to_enemy_buildings;
|
|
54 char to_enemy_wall;
|
|
55 char to_enemy_tower;
|
|
56 char to_pl_enm_quarry_lvl;
|
|
57 char to_pl_enm_magic_lvl;
|
|
58 char to_pl_enm_zoo_lvl;
|
|
59 char to_pl_enm_bricks;
|
|
60 char to_pl_enm_gems;
|
|
61 char to_pl_enm_beasts;
|
|
62 char to_pl_enm_buildings;
|
|
63 char to_pl_enm_wall;
|
|
64 char to_pl_enm_tower;
|
1204
|
65 char field_4D;
|
1245
|
66 char can_draw_extra_card2;
|
|
67 char to_player_quarry_lvl2;
|
|
68 char to_player_magic_lvl2;
|
|
69 char to_player_zoo_lvl2;
|
|
70 char to_player_bricks2;
|
|
71 char to_player_gems2;
|
|
72 char to_player_beasts2;
|
|
73 char to_player_buildings2;
|
|
74 char to_player_wall2;
|
|
75 char to_player_tower2;
|
|
76 char to_enemy_quarry_lvl2;
|
|
77 char to_enemy_magic_lvl2;
|
|
78 char to_enemy_zoo_lvl2;
|
|
79 char to_enemy_bricks2;
|
|
80 char to_enemy_gems2;
|
|
81 char to_enemy_beasts2;
|
|
82 char to_enemy_buildings2;
|
|
83 char to_enemy_wall2;
|
|
84 char to_enemy_tower2;
|
|
85 char to_pl_enm_quarry_lvl2;
|
|
86 char to_pl_enm_magic_lvl2;
|
|
87 char to_pl_enm_zoo_lvl2;
|
|
88 char to_pl_enm_bricks2;
|
|
89 char to_pl_enm_gems2;
|
|
90 char to_pl_enm_beasts2;
|
|
91 char to_pl_enm_buildings2;
|
|
92 char to_pl_enm_wall2;
|
|
93 char to_pl_enm_tower2;
|
1204
|
94 char field_6A;
|
|
95 char field_6B;
|
|
96 };
|
0
|
97 #pragma pack(pop)
|
|
98
|
|
99
|
|
100
|
|
101
|
|
102 #pragma pack(push, 1)
|
1183
|
103 struct ArcomagePlayer
|
0
|
104 {
|
|
105 char pPlayerName[32];
|
1197
|
106 int IsHisTurn;
|
|
107 int tower_height;
|
|
108 int wall_height;
|
|
109 int quarry_level;
|
|
110 int magic_level;
|
1200
|
111 int zoo_level;
|
1197
|
112 int resource_bricks;
|
|
113 int resource_gems;
|
|
114 int resource_beasts;
|
1183
|
115 int cards_at_hand[10];
|
1256
|
116 POINT card_shift[10];
|
0
|
117 };
|
|
118 #pragma pack(pop)
|
|
119
|
|
120
|
|
121
|
|
122 #pragma pack(push, 1)
|
|
123 struct ArcomageGame_stru1
|
|
124 {
|
|
125 int field_0;
|
|
126 int field_4;
|
|
127 int field_8;
|
|
128 };
|
|
129 #pragma pack(pop)
|
|
130
|
|
131
|
|
132
|
|
133
|
|
134 #pragma pack(push, 1)
|
|
135 struct ArcomageGame
|
|
136 {
|
|
137 ArcomageGame();
|
|
138
|
|
139 static bool LoadBackground();
|
|
140 static bool LoadSprites();
|
|
141 static bool MsgLoop(int a1, ArcomageGame_stru1 *a2);
|
1183
|
142 static void PlaySound(unsigned int event_id);
|
0
|
143 static void OnMouseClick(char right_left, bool bDown);
|
|
144 static void OnMouseMove(POINT *pXY);
|
1183
|
145 static void GetCardRect(unsigned int uCardID, RECT *pCardRect);
|
0
|
146
|
|
147 static void Loop();
|
|
148
|
|
149 char field_0;
|
|
150 char field_1;
|
|
151 char field_2;
|
|
152 char field_3;
|
|
153 int field_4;
|
|
154 ArcomageGame_stru1 stru1;
|
|
155 tagMSG msg;
|
|
156 int mouse_x;
|
|
157 int mouse_y;
|
|
158 char mouse_left;
|
|
159 char field_39;
|
|
160 char mouse_right;
|
|
161 char field_3B;
|
|
162 unsigned __int16 *pBackgroundPixels;
|
|
163 unsigned __int16 *pSpritesPixels;
|
|
164 unsigned __int16 *pBlit_Copy_pixels;
|
1183
|
165 struct GUIFont *pfntComic;//ptr_48;
|
|
166 struct GUIFont *pfntArrus;//ptr_4C;
|
0
|
167 int field_50;
|
1267
|
168 int field_54;
|
0
|
169 RGBTexture pGameBackground;
|
|
170 RGBTexture pSprites;
|
|
171 int event_timer_time;
|
|
172 int uGameResult;
|
|
173 int field_B0;
|
|
174 char pPlayer1Name[32];
|
|
175 char pPlayer2Name[32];
|
|
176 char field_F4;
|
1197
|
177 char GameOver;
|
0
|
178 char field_F6;
|
1263
|
179 char prev_mouse_left;
|
|
180 char prev_mouse_right;
|
0
|
181 char field_F9;
|
|
182 char bGameInProgress;
|
|
183 };
|
|
184 #pragma pack(pop)
|
|
185
|
|
186
|
|
187
|
|
188
|
|
189 extern ArcomageGame *pArcomageGame;
|
|
190 extern ArcomageCard pCards[87];
|
1197
|
191
|
935
|
192
|
|
193
|
1184
|
194 #pragma pack(push, 1)
|
|
195 struct stru272_stru1
|
1204
|
196 {
|
1263
|
197 int have_spark;
|
|
198 POINT spark_position;
|
1204
|
199 int field_C;
|
|
200 int field_10;
|
|
201 int field_14;
|
|
202 int field_18;
|
|
203 };
|
1184
|
204 #pragma pack(pop)
|
935
|
205
|
1186
|
206 /* 404 */
|
|
207 #pragma pack(push, 1)
|
|
208 struct stru272_stru2
|
1204
|
209 {
|
1263
|
210 /*int field_0;
|
|
211 int field_4;
|
|
212 int field_8;
|
|
213 int field_C;*/
|
|
214 RECT effect_area;
|
1204
|
215 int field_10;
|
|
216 int field_14;
|
|
217 int field_18;
|
|
218 float field_1Cf;
|
|
219 int field_20;
|
|
220 float field_24f;
|
|
221 float field_28f;
|
|
222 float field_2Cf;
|
|
223 int field_30;
|
|
224 int field_34;
|
1263
|
225 stru272_stru1* sparks_array;
|
1204
|
226 };
|
1186
|
227 #pragma pack(pop)
|
|
228
|
|
229
|
935
|
230 /* 270 */
|
|
231 #pragma pack(push, 1)
|
|
232 struct stru272_stru0 // ARCOMAGE stuff
|
|
233 {
|
1245
|
234 static void Ctor(stru272_stru0 **a1);
|
1200
|
235 int Dtor();
|
1263
|
236 int StartFill(stru272_stru2* a2);
|
1200
|
237 int Empty(char a2, char a3);
|
1263
|
238 int DrawEffect();
|
935
|
239 int _40E2A7();
|
|
240
|
1184
|
241 int signature;
|
935
|
242 int field_4;
|
1263
|
243 int position_in_sparks_arr;
|
935
|
244 int field_C;
|
|
245 int field_10;
|
|
246 int field_14;
|
|
247 int field_18;
|
|
248 int field_1C;
|
|
249 int field_20;
|
|
250 int field_24;
|
|
251 float field_28;
|
|
252 float field_2C;
|
|
253 float field_30;
|
|
254 int field_34;
|
|
255 int field_38;
|
|
256 int field_3C;
|
|
257 int field_40;
|
|
258 int field_44;
|
|
259 int field_48;
|
|
260 int field_4C;
|
|
261 int field_50;
|
1184
|
262 stru272_stru1 * field_54;
|
935
|
263 char field_58;
|
|
264 char field_59;
|
|
265 char field_5A;
|
|
266 char field_5B;
|
|
267 };
|
|
268 #pragma pack(pop)
|
|
269
|
1194
|
270 #define DECK_SIZE 108
|
935
|
271
|
1194
|
272 #pragma pack(push, 1)
|
|
273 struct ArcomageDeck
|
1204
|
274 {
|
|
275 char name[32];
|
|
276 char cardsInUse[DECK_SIZE];
|
|
277 int cards_IDs[DECK_SIZE];
|
|
278 };
|
1184
|
279
|
1194
|
280 #pragma pack(pop)
|
1184
|
281
|
935
|
282 #pragma pack(push, 1)
|
|
283 struct stru272
|
1204
|
284 {
|
1263
|
285 char have_effect;
|
|
286 char effect_sign;
|
1204
|
287 char _pad_2;
|
|
288 char _pad_3;
|
|
289 stru272_stru2 field_4;
|
|
290 stru272_stru0 *field_40;
|
1263
|
291 stru272_stru1 effect_sparks[150];
|
1204
|
292 };
|
935
|
293 #pragma pack(pop)
|
|
294
|