annotate Arcomage.h @ 1052:d48c762de563

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