0
|
1 #pragma once
|
|
2 #include "OSAPI.h"
|
|
3
|
|
4 #include "Texture.h"
|
|
5
|
1185
|
6 #pragma pack(push, 1)
|
|
7 struct am_st1
|
|
8 {
|
|
9 int field_0;
|
|
10 int field_4;
|
|
11 };
|
|
12 #pragma pack(pop)
|
0
|
13
|
1183
|
14 /* 401 */
|
0
|
15 #pragma pack(push, 1)
|
1183
|
16 struct Acromage_st1
|
|
17 {
|
|
18 int uCardId;
|
|
19 int field_4;
|
|
20 POINT field_8;
|
|
21 int field_10_xplus;
|
|
22 int field_14_y_plus;
|
|
23 POINT field_18_point;
|
|
24 };
|
0
|
25 #pragma pack(pop)
|
|
26
|
|
27
|
|
28 /* 272 */
|
|
29 #pragma pack(push, 1)
|
|
30 struct ArcomageCard
|
1183
|
31 {
|
1185
|
32 char pCardName[32];
|
1183
|
33 int slot;
|
|
34 char field_24;
|
|
35 char field_25;
|
|
36 char field_26;
|
|
37 char field_27;
|
|
38 char field_28;
|
|
39 char field_29;
|
|
40 char field_2A;
|
|
41 char field_2B;
|
|
42 char field_2C;
|
|
43 char field_2D;
|
|
44 char field_2E;
|
|
45 char field_2F;
|
|
46 char field_30;
|
|
47 char field_31;
|
|
48 char field_32;
|
|
49 char field_33;
|
|
50 char field_34;
|
|
51 char field_35;
|
|
52 char field_36;
|
|
53 char field_37;
|
|
54 char field_38;
|
|
55 char field_39;
|
|
56 char field_3A;
|
|
57 char field_3B;
|
|
58 char field_3C;
|
|
59 char field_3D;
|
|
60 char field_3E;
|
|
61 char field_3F;
|
|
62 char field_40;
|
|
63 char field_41;
|
|
64 char field_42;
|
|
65 char field_43;
|
|
66 char field_44;
|
|
67 char field_45;
|
|
68 char field_46;
|
|
69 char field_47;
|
|
70 char field_48;
|
|
71 char field_49;
|
|
72 char field_4A;
|
|
73 char field_4B;
|
|
74 char field_4C;
|
|
75 char field_4D;
|
|
76 char field_4E;
|
|
77 char field_4F;
|
|
78 char field_50;
|
|
79 char field_51;
|
|
80 char field_52;
|
|
81 char field_53;
|
|
82 char field_54;
|
|
83 char field_55;
|
|
84 char field_56;
|
|
85 char field_57;
|
|
86 char field_58;
|
|
87 char field_59;
|
|
88 char field_5A;
|
|
89 char field_5B;
|
|
90 char field_5C;
|
|
91 char field_5D;
|
|
92 char field_5E;
|
|
93 char field_5F;
|
|
94 char field_60;
|
|
95 char field_61;
|
|
96 char field_62;
|
|
97 char field_63;
|
|
98 char field_64;
|
|
99 char field_65;
|
|
100 char field_66;
|
|
101 char field_67;
|
|
102 char field_68;
|
|
103 char field_69;
|
|
104 char field_6A;
|
|
105 char field_6B;
|
|
106 };
|
0
|
107 #pragma pack(pop)
|
|
108
|
|
109
|
|
110
|
|
111
|
|
112 #pragma pack(push, 1)
|
1183
|
113 struct ArcomagePlayer
|
0
|
114 {
|
|
115 char pPlayerName[32];
|
|
116 int field_20;
|
|
117 int field_24;
|
|
118 int field_28;
|
|
119 int field_2C;
|
|
120 int field_30;
|
|
121 int field_34;
|
|
122 int field_38;
|
|
123 int field_3C;
|
|
124 int field_40;
|
1183
|
125 int cards_at_hand[10];
|
1185
|
126 am_st1 arr_6C[10];
|
0
|
127 };
|
|
128 #pragma pack(pop)
|
|
129
|
|
130
|
|
131
|
|
132 #pragma pack(push, 1)
|
|
133 struct ArcomageGame_stru1
|
|
134 {
|
|
135 int field_0;
|
|
136 int field_4;
|
|
137 int field_8;
|
|
138 };
|
|
139 #pragma pack(pop)
|
|
140
|
|
141
|
|
142
|
|
143
|
|
144 #pragma pack(push, 1)
|
|
145 struct ArcomageGame
|
|
146 {
|
|
147 ArcomageGame();
|
|
148
|
|
149 static bool LoadBackground();
|
|
150 static bool LoadSprites();
|
|
151 static bool MsgLoop(int a1, ArcomageGame_stru1 *a2);
|
1183
|
152 static void PlaySound(unsigned int event_id);
|
0
|
153 static void OnMouseClick(char right_left, bool bDown);
|
|
154 static void OnMouseMove(POINT *pXY);
|
1183
|
155 static void GetCardRect(unsigned int uCardID, RECT *pCardRect);
|
0
|
156
|
|
157 static void Loop();
|
|
158
|
|
159 char field_0;
|
|
160 char field_1;
|
|
161 char field_2;
|
|
162 char field_3;
|
|
163 int field_4;
|
|
164 ArcomageGame_stru1 stru1;
|
|
165 tagMSG msg;
|
|
166 int mouse_x;
|
|
167 int mouse_y;
|
|
168 char mouse_left;
|
|
169 char field_39;
|
|
170 char mouse_right;
|
|
171 char field_3B;
|
|
172 unsigned __int16 *pBackgroundPixels;
|
|
173 unsigned __int16 *pSpritesPixels;
|
|
174 unsigned __int16 *pBlit_Copy_pixels;
|
1183
|
175 struct GUIFont *pfntComic;//ptr_48;
|
|
176 struct GUIFont *pfntArrus;//ptr_4C;
|
0
|
177 int field_50;
|
|
178 __int16 field_54;
|
|
179 __int16 field_56;
|
|
180 RGBTexture pGameBackground;
|
|
181 RGBTexture pSprites;
|
|
182 int event_timer_time;
|
|
183 int uGameResult;
|
|
184 int field_B0;
|
|
185 char pPlayer1Name[32];
|
|
186 char pPlayer2Name[32];
|
|
187 char field_F4;
|
|
188 char field_F5;
|
|
189 char field_F6;
|
|
190 char field_F7;
|
|
191 char field_F8;
|
|
192 char field_F9;
|
|
193 char bGameInProgress;
|
|
194 };
|
|
195 #pragma pack(pop)
|
|
196
|
|
197
|
|
198
|
|
199
|
|
200 extern ArcomageGame *pArcomageGame;
|
|
201 extern ArcomageCard pCards[87];
|
1183
|
202 extern ArcomagePlayer am_Players[2];
|
935
|
203
|
|
204
|
1184
|
205 #pragma pack(push, 1)
|
|
206 struct stru272_stru1
|
|
207 {
|
|
208 int field_0;
|
1185
|
209 POINT field_4;
|
1184
|
210 int field_C;
|
|
211 int field_10;
|
|
212 int field_14;
|
|
213 int field_18;
|
|
214 };
|
|
215 #pragma pack(pop)
|
935
|
216
|
1186
|
217 /* 404 */
|
|
218 #pragma pack(push, 1)
|
|
219 struct stru272_stru2
|
|
220 {
|
|
221 int field_0;
|
|
222 int field_4;
|
|
223 int field_8;
|
|
224 int field_C;
|
|
225 int field_10;
|
|
226 int field_14;
|
|
227 int field_18;
|
|
228 float field_1Cf;
|
|
229 int field_20;
|
|
230 float field_24f;
|
|
231 float field_28f;
|
|
232 float field_2Cf;
|
|
233 int field_30;
|
|
234 int field_34;
|
|
235 stru272_stru1* field_38;
|
|
236 };
|
|
237 #pragma pack(pop)
|
|
238
|
|
239
|
935
|
240 /* 270 */
|
|
241 #pragma pack(push, 1)
|
|
242 struct stru272_stru0 // ARCOMAGE stuff
|
|
243 {
|
1184
|
244 static void _40DFD1(stru272_stru0 *a1);
|
935
|
245 int _40DFFE();
|
1186
|
246 int _40E01A(stru272_stru2* a2);
|
935
|
247 int _40E0F5(char a2, char a3);
|
|
248 int _40E133();
|
|
249 int _40E2A7();
|
|
250
|
1184
|
251 int signature;
|
935
|
252 int field_4;
|
|
253 int field_8;
|
|
254 int field_C;
|
|
255 int field_10;
|
|
256 int field_14;
|
|
257 int field_18;
|
|
258 int field_1C;
|
|
259 int field_20;
|
|
260 int field_24;
|
|
261 float field_28;
|
|
262 float field_2C;
|
|
263 float field_30;
|
|
264 int field_34;
|
|
265 int field_38;
|
|
266 int field_3C;
|
|
267 int field_40;
|
|
268 int field_44;
|
|
269 int field_48;
|
|
270 int field_4C;
|
|
271 int field_50;
|
1184
|
272 stru272_stru1 * field_54;
|
935
|
273 char field_58;
|
|
274 char field_59;
|
|
275 char field_5A;
|
|
276 char field_5B;
|
|
277 };
|
|
278 #pragma pack(pop)
|
|
279
|
1194
|
280 #define DECK_SIZE 108
|
935
|
281
|
1194
|
282 #pragma pack(push, 1)
|
|
283 struct ArcomageDeck
|
|
284 {
|
|
285 char name[32];
|
|
286 char cardsInUse[DECK_SIZE];
|
|
287 int cards_IDs[DECK_SIZE];
|
|
288 };
|
1184
|
289
|
1194
|
290 #pragma pack(pop)
|
1184
|
291
|
935
|
292 #pragma pack(push, 1)
|
|
293 struct stru272
|
1184
|
294 {
|
|
295 char field_0;
|
|
296 char field_1;
|
|
297 char field_2;
|
|
298 char field_3;
|
1186
|
299 stru272_stru2 field_4;
|
1184
|
300 stru272_stru0 *field_40;
|
|
301 stru272_stru1 field_44[150];
|
|
302 };
|
935
|
303 #pragma pack(pop)
|
|
304
|