0
|
1 #pragma once
|
|
2 #include "OSAPI.h"
|
|
3
|
|
4 #include "Texture.h"
|
|
5
|
|
6
|
|
7
|
|
8 #pragma pack(push, 1)
|
|
9 struct ArcomageRect
|
|
10 {
|
|
11 int x;
|
|
12 int y;
|
|
13 int z;
|
|
14 int w;
|
|
15 };
|
|
16 #pragma pack(pop)
|
|
17
|
|
18
|
|
19 /* 272 */
|
|
20 #pragma pack(push, 1)
|
|
21 struct ArcomageCard
|
|
22 {
|
|
23 char pCardName[20];
|
|
24 int field_14;
|
|
25 int field_18;
|
|
26 int field_1C;
|
|
27 int slot;
|
|
28 int field_24;
|
|
29 int field_28;
|
|
30 int field_2C;
|
|
31 float field_30;
|
|
32 int field_34;
|
|
33 char field_38[16];
|
|
34 char field_48[16];
|
|
35 char field_58[16];
|
|
36 int field_68;
|
|
37 };
|
|
38 #pragma pack(pop)
|
|
39
|
|
40
|
|
41
|
|
42
|
|
43 #pragma pack(push, 1)
|
|
44 struct ArcomageGame_stru0
|
|
45 {
|
|
46 char pPlayerName[32];
|
|
47 int field_20;
|
|
48 int field_24;
|
|
49 int field_28;
|
|
50 int field_2C;
|
|
51 int field_30;
|
|
52 int field_34;
|
|
53 int field_38;
|
|
54 int field_3C;
|
|
55 int field_40;
|
|
56 int arr_44[10];
|
|
57 int arr_6C[10][2];
|
|
58 };
|
|
59 #pragma pack(pop)
|
|
60
|
|
61
|
|
62
|
|
63 #pragma pack(push, 1)
|
|
64 struct ArcomageGame_stru1
|
|
65 {
|
|
66 int field_0;
|
|
67 int field_4;
|
|
68 int field_8;
|
|
69 };
|
|
70 #pragma pack(pop)
|
|
71
|
|
72
|
|
73
|
|
74
|
|
75 #pragma pack(push, 1)
|
|
76 struct ArcomageGame
|
|
77 {
|
|
78 ArcomageGame();
|
|
79
|
|
80 static bool LoadBackground();
|
|
81 static bool LoadSprites();
|
|
82 static bool MsgLoop(int a1, ArcomageGame_stru1 *a2);
|
|
83 static void PlaySound(unsigned int a1);
|
|
84 static void OnMouseClick(char right_left, bool bDown);
|
|
85 static void OnMouseMove(POINT *pXY);
|
|
86 static void GetCardRect(unsigned int uCardID, ArcomageRect *pCardRect);
|
|
87
|
|
88 static void Loop();
|
|
89
|
|
90 char field_0;
|
|
91 char field_1;
|
|
92 char field_2;
|
|
93 char field_3;
|
|
94 int field_4;
|
|
95 ArcomageGame_stru1 stru1;
|
|
96 tagMSG msg;
|
|
97 int mouse_x;
|
|
98 int mouse_y;
|
|
99 char mouse_left;
|
|
100 char field_39;
|
|
101 char mouse_right;
|
|
102 char field_3B;
|
|
103 unsigned __int16 *pBackgroundPixels;
|
|
104 unsigned __int16 *pSpritesPixels;
|
|
105 unsigned __int16 *pBlit_Copy_pixels;
|
|
106 struct GUIFont *pFont1;//ptr_48;
|
|
107 struct GUIFont *pFont2;//ptr_4C;
|
|
108 int field_50;
|
|
109 __int16 field_54;
|
|
110 __int16 field_56;
|
|
111 RGBTexture pGameBackground;
|
|
112 RGBTexture pSprites;
|
|
113 int event_timer_time;
|
|
114 int uGameResult;
|
|
115 int field_B0;
|
|
116 char pPlayer1Name[32];
|
|
117 char pPlayer2Name[32];
|
|
118 char field_F4;
|
|
119 char field_F5;
|
|
120 char field_F6;
|
|
121 char field_F7;
|
|
122 char field_F8;
|
|
123 char field_F9;
|
|
124 char bGameInProgress;
|
|
125 };
|
|
126 #pragma pack(pop)
|
|
127
|
|
128
|
|
129
|
|
130
|
|
131 extern ArcomageGame *pArcomageGame;
|
|
132 extern ArcomageCard pCards[87];
|
935
|
133 extern ArcomageGame_stru0 stru_505708[2];
|
|
134
|
|
135
|
|
136
|
|
137
|
|
138
|
|
139
|
|
140
|
|
141
|
|
142
|
|
143
|
|
144
|
|
145
|
|
146
|
|
147
|
|
148
|
|
149
|
|
150 /* 270 */
|
|
151 #pragma pack(push, 1)
|
|
152 struct stru272_stru0 // ARCOMAGE stuff
|
|
153 {
|
|
154 int _40DFFE();
|
|
155 int _40E01A(int a2);
|
|
156 int _40E0F5(char a2, char a3);
|
|
157 int _40E133();
|
|
158 int _40E2A7();
|
|
159
|
|
160 int field_0;
|
|
161 int field_4;
|
|
162 int field_8;
|
|
163 int field_C;
|
|
164 int field_10;
|
|
165 int field_14;
|
|
166 int field_18;
|
|
167 int field_1C;
|
|
168 int field_20;
|
|
169 int field_24;
|
|
170 float field_28;
|
|
171 float field_2C;
|
|
172 float field_30;
|
|
173 int field_34;
|
|
174 int field_38;
|
|
175 int field_3C;
|
|
176 int field_40;
|
|
177 int field_44;
|
|
178 int field_48;
|
|
179 int field_4C;
|
|
180 int field_50;
|
|
181 int field_54;
|
|
182 char field_58;
|
|
183 char field_59;
|
|
184 char field_5A;
|
|
185 char field_5B;
|
|
186 };
|
|
187 #pragma pack(pop)
|
|
188
|
|
189
|
|
190 /* 266 */
|
|
191 #pragma pack(push, 1)
|
|
192 struct stru272
|
|
193 {
|
|
194 void _40DFD1();
|
|
195
|
|
196 struct stru272_stru0 *ptr_0;
|
|
197 char field_4[4264];
|
|
198 };
|
|
199 #pragma pack(pop)
|
|
200
|
|
201
|
|
202 extern stru272 array_4FAC10[10]; |