annotate Arcomage.h @ 678:35a97ce58790

fixed stru10::49C9E3 (cause for attempting to get cross product on zero vectors)
author Nomad
date Fri, 15 Mar 2013 15:58:18 +0200
parents 9c0607679772
children b462b598b97a
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];
Ritor1
parents:
diff changeset
133 extern ArcomageGame_stru0 stru_505708[2];