annotate Game.h @ 7:1200e31f08e5

10.10.12
author Серик@ПончиК
date Wed, 10 Oct 2012 21:05:53 +0600
parents 8b8875f5b359
children 540178ef9b18
rev   line source
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1 #pragma once
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2 #include "LightmapBuilder.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3 #include "DecalBuilder.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4 #include "ParticleEngine.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5 #include "Vis.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
6 #include "Mouse.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
7 #include "Keyboard.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
8 #include "IndoorCameraD3D.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
9 #include "CShow.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
10 #include "GammaControl.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
11 #include "stru6.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
12 #include "stru9.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
13 #include "stru10.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
14 #include "stru11.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
15 #include "stru12.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
16
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
17
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
18
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
19
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
20
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
21 /* 320 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
22 enum GAME_STATE
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
23 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
24 GAME_STATE_0 = 0x0,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
25 GAME_STATE_1 = 0x1,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
26 GAME_STATE_2 = 0x2,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
27 GAME_STATE_3 = 0x3,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
28 GAME_STATE_4 = 0x4,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
29 GAME_STATE_5 = 0x5,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
30 GAME_STATE_6 = 0x6,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
31 GAME_STATE_7 = 0x7,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
32 GAME_STATE_8 = 0x8,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
33 GAME_STATE_FINAL_WINDOW = 0x9,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
34 GAME_STATE_A = 0xA
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
35 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
36
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
37
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
38
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
39 /* 105 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
40 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
41 struct Game__StationaryLight
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
42 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
43 Vec3_float_ vPosition;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
44 Vec3_float_ vRGBColor;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
45 float flt_18;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
46 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
47 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
48
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
49
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
50 /* 108 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
51 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
52 struct Game_stru0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
53 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
54 int field_0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
55 unsigned __int8 *ptr_4;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
56 int field_8;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
57 int field_C;
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 /* 279 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
63 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
64 struct Game_stru1
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
65 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
66 float flt_0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
67 float flt_4;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
68 float flt_8;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
69 float flt_C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
70 float flt_10;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
71 float flt_14;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
72 float flt_18;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
73 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
74 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
75
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
76 /* 104 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
77 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
78 struct Game
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
79 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
80 static Game *Create();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
81 static void Destroy();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
82
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
83 protected: Game();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
84 protected: ~Game();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
85
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
86 public:
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
87 void _44E904();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
88 bool InitializeGammaController();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
89 char PickMouse(float fPickDepth, unsigned int uMouseX, unsigned int uMouseY, bool bOutline, struct stru157 *a5, struct stru157 *a6);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
90 bool _44EB12(bool bOutline, struct stru157 *a3, struct stru157 *a4);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
91 void OutlineSelection();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
92 signed int _44EC23(struct stru148 *a2, int *a3, signed int a4);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
93 signed int _44ED0A(struct BLVFace *a2, int *a3, signed int a4);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
94 bool _44EDE4(struct BLVFace *pFace, int *a3);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
95 bool _44EE30(struct ODMFace *a2, int a3);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
96 bool draw_debug_outlines();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
97 bool _44EEA7();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
98 bool _44F07B();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
99 void ToggleFlags(unsigned int uMask);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
100 void ToggleFlags2(unsigned int uFlag);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
101 void _44F0FD();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
102 void PushStationaryLights(int a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
103 void PushStru165s();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
104 void Deinitialize();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
105 void Loop();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
106 void DrawParticles();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
107 void Draw();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
108
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
109 //----- (0042EB6A) --------------------------------------------------------
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
110 struct stru6 *GetStru6() {return this->pStru6Instance;}
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
111 //----- (0042EB71) --------------------------------------------------------
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
112 struct IndoorCameraD3D *GetIndoorCamera() {return this->pIndoorCameraD3D;}
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
113
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
114
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
115 void (__thiscall ***vdestructor_ptr)(Game *, bool);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
116 Game__StationaryLight pStationaryLights[25];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
117 char field_2C0[1092];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
118 unsigned int uNumStationaryLights;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
119 Game_stru1 array_708[20];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
120 int field_938;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
121 int field_93C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
122 int field_940;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
123 int field_944;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
124 int field_948;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
125 int field_94C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
126 int field_950;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
127 int field_954;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
128 int field_958;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
129 int field_95C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
130 int field_960;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
131 int field_964;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
132 int field_968;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
133 int field_96C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
134 int field_970;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
135 Mouse *pMouse;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
136 int field_978;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
137 Game_stru0 stru_97C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
138 char field_98C[1148];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
139 int array_708_size;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
140 int field_E0C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
141 __int64 field_E10;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
142 int uNumStationaryLights_in_pStationaryLightsStack;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
143 unsigned int bGammaControlInitialized;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
144 unsigned int uFlags;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
145 unsigned int uFlags2;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
146 float _E28_timed_gamma_strength;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
147 unsigned __int64 uSomeGammaStartTime;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
148 __int64 uSomeGammaDeltaTime;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
149 ThreadWard *pThreadWardInstance;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
150 ParticleEngine *pParticleEngine;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
151 Mouse *pMouseInstance;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
152 LightmapBuilder *pLightmapBuilder;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
153 Vis *pVisInstance;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
154 stru6 *pStru6Instance;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
155 IndoorCameraD3D *pIndoorCameraD3D;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
156 stru9 *pStru9Instance;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
157 stru10 *pStru10Instance;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
158 stru11 *pStru11Instance;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
159 stru12 *pStru12Instance;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
160 CShow *pCShow;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
161 Keyboard *pKeyboardInstance;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
162 GammaController *pGammaController;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
163 int field_E74;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
164 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
165 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
166
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
167
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
168
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
169
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
170
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
171
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
172 extern Game *pGame;