annotate Arcomage.h @ 151:a8f4a158e284

ActiveSkill
author Ritor1
date Tue, 27 Nov 2012 17:31:15 +0600
parents 8b8875f5b359
children
rev   line source
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1 #pragma once
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2 #include "OSAPI.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4 #include "Texture.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
6
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
7
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
8 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
9 struct ArcomageRect
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
10 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
11 int x;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
12 int y;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
13 int z;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
14 int w;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
15 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
16 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
17
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
18
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
19 /* 272 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
20 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
21 struct ArcomageCard
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
22 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
23 char pCardName[20];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
24 int field_14;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
25 int field_18;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
26 int field_1C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
27 int slot;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
28 int field_24;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
29 int field_28;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
30 int field_2C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
31 float field_30;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
32 int field_34;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
33 char field_38[16];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
34 char field_48[16];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
35 char field_58[16];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
36 int field_68;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
37 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
38 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
39
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
40
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
41
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
42
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
43 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
44 struct ArcomageGame_stru0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
45 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
46 char pPlayerName[32];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
47 int field_20;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
48 int field_24;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
49 int field_28;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
50 int field_2C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
51 int field_30;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
52 int field_34;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
53 int field_38;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
54 int field_3C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
55 int field_40;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
56 int arr_44[10];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
57 int arr_6C[10][2];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
58 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
59 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
60
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
61
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
62
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
63 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
64 struct ArcomageGame_stru1
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
65 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
66 int field_0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
67 int field_4;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
68 int field_8;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
69 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
70 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
71
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
72
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
73
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
74
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
75 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
76 struct ArcomageGame
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
77 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
78 ArcomageGame();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
79
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
80 static bool LoadBackground();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
81 static bool LoadSprites();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
82 static bool MsgLoop(int a1, ArcomageGame_stru1 *a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
83 static void PlaySound(unsigned int a1);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
84 static void OnMouseClick(char right_left, bool bDown);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
85 static void OnMouseMove(POINT *pXY);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
86 static void GetCardRect(unsigned int uCardID, ArcomageRect *pCardRect);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
87
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
88 static void Loop();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
89
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
90 char field_0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
91 char field_1;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
92 char field_2;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
93 char field_3;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
94 int field_4;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
95 ArcomageGame_stru1 stru1;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
96 tagMSG msg;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
97 int mouse_x;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
98 int mouse_y;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
99 char mouse_left;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
100 char field_39;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
101 char mouse_right;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
102 char field_3B;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
103 unsigned __int16 *pBackgroundPixels;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
104 unsigned __int16 *pSpritesPixels;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
105 unsigned __int16 *pBlit_Copy_pixels;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
106 struct GUIFont *pFont1;//ptr_48;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
107 struct GUIFont *pFont2;//ptr_4C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
108 int field_50;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
109 __int16 field_54;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
110 __int16 field_56;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
111 RGBTexture pGameBackground;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
112 RGBTexture pSprites;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
113 int event_timer_time;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
114 int uGameResult;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
115 int field_B0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
116 char pPlayer1Name[32];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
117 char pPlayer2Name[32];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
118 char field_F4;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
119 char field_F5;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
120 char field_F6;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
121 char field_F7;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
122 char field_F8;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
123 char field_F9;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
124 char bGameInProgress;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
125 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
126 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
127
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
128
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
129
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
130
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
131 extern ArcomageGame *pArcomageGame;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
132 extern ArcomageCard pCards[87];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
133 extern ArcomageGame_stru0 stru_505708[2];