Mercurial > might-and-magic-trilogy
comparison Arcomage.h @ 0:8b8875f5b359
Initial commit
author | Nomad |
---|---|
date | Fri, 05 Oct 2012 16:07:14 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:8b8875f5b359 |
---|---|
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]; | |
133 extern ArcomageGame_stru0 stru_505708[2]; |