0
|
1 #pragma once
|
|
2 #include "LightmapBuilder.h"
|
|
3 #include "DecalBuilder.h"
|
|
4 #include "ParticleEngine.h"
|
|
5 #include "Vis.h"
|
|
6 #include "Mouse.h"
|
|
7 #include "Keyboard.h"
|
|
8 #include "IndoorCameraD3D.h"
|
|
9 #include "CShow.h"
|
|
10 #include "GammaControl.h"
|
|
11 #include "stru6.h"
|
|
12 #include "stru9.h"
|
|
13 #include "stru10.h"
|
|
14 #include "stru11.h"
|
|
15 #include "stru12.h"
|
|
16
|
|
17
|
|
18
|
573
|
19 #define GAME_FLAGS_2_DRAW_BLOODSPLATS 0x20
|
|
20
|
0
|
21
|
|
22
|
|
23 /* 320 */
|
|
24 enum GAME_STATE
|
|
25 {
|
|
26 GAME_STATE_0 = 0x0,
|
|
27 GAME_FINISHED = 0x1,
|
|
28 GAME_STATE_2 = 0x2,
|
|
29 GAME_STATE_3 = 0x3,
|
101
|
30 GAME_STATE_NEWGAME_OUT_GAMEMENU = 0x4,
|
0
|
31 GAME_STATE_5 = 0x5,
|
|
32 GAME_STATE_6 = 0x6,
|
|
33 GAME_STATE_7 = 0x7,
|
|
34 GAME_STATE_8 = 0x8,
|
|
35 GAME_STATE_FINAL_WINDOW = 0x9,
|
|
36 GAME_STATE_A = 0xA
|
|
37 };
|
|
38
|
|
39
|
|
40
|
|
41 /* 105 */
|
|
42 #pragma pack(push, 1)
|
|
43 struct Game__StationaryLight
|
|
44 {
|
|
45 Vec3_float_ vPosition;
|
|
46 Vec3_float_ vRGBColor;
|
|
47 float flt_18;
|
|
48 };
|
|
49 #pragma pack(pop)
|
|
50
|
|
51
|
|
52 /* 108 */
|
|
53 #pragma pack(push, 1)
|
|
54 struct Game_stru0
|
|
55 {
|
|
56 int field_0;
|
|
57 unsigned __int8 *ptr_4;
|
|
58 int field_8;
|
|
59 int field_C;
|
|
60 };
|
|
61 #pragma pack(pop)
|
|
62
|
|
63
|
|
64 /* 279 */
|
|
65 #pragma pack(push, 1)
|
|
66 //Game_stru1
|
|
67 struct Game_Bloodsplat
|
|
68 {
|
|
69 float x;
|
|
70 float y;
|
|
71 float z;
|
|
72 float r;
|
|
73 float g;
|
|
74 float b;
|
|
75 float radius;
|
|
76 };
|
|
77 #pragma pack(pop)
|
|
78
|
|
79 /* 104 */
|
|
80 #pragma pack(push, 1)
|
|
81 struct Game
|
|
82 {
|
|
83 static Game *Create();
|
|
84 static void Destroy();
|
|
85
|
|
86 protected: Game();
|
522
|
87 protected: virtual ~Game();
|
0
|
88
|
|
89 public:
|
|
90 void _44E904();
|
|
91 bool InitializeGammaController();
|
194
|
92 bool PickMouse(float fPickDepth, unsigned int uMouseX, unsigned int uMouseY, bool bOutline, struct Vis_SelectionFilter *sprite_filter, struct Vis_SelectionFilter *face_filter);
|
|
93 bool PickKeyboard(bool bOutline, struct Vis_SelectionFilter *sprite_filter, struct Vis_SelectionFilter *face_filter);
|
0
|
94 void OutlineSelection();
|
|
95 signed int _44EC23(struct stru148 *a2, int *a3, signed int a4);
|
|
96 signed int _44ED0A(struct BLVFace *a2, int *a3, signed int a4);
|
|
97 bool AlterGamma(struct BLVFace *pFace, unsigned int *pColor);
|
|
98 bool _44EE30(struct ODMFace *a2, int a3);
|
|
99 bool draw_debug_outlines();
|
|
100 bool _44EEA7();
|
|
101 bool _44F07B();
|
|
102 void ToggleFlags(unsigned int uMask);
|
|
103 void ToggleFlags2(unsigned int uFlag);
|
|
104 void _44F0FD();
|
|
105 void PushStationaryLights(int a2);
|
|
106 void PrepareBloodsplats();
|
|
107 void Deinitialize();
|
|
108 void Loop();
|
|
109 void DrawParticles();
|
|
110 void Draw();
|
|
111
|
|
112 //----- (0042EB6A) --------------------------------------------------------
|
|
113 struct stru6 *GetStru6() {return this->pStru6Instance;}
|
|
114 //----- (0042EB71) --------------------------------------------------------
|
|
115 struct IndoorCameraD3D *GetIndoorCamera() {return this->pIndoorCameraD3D;}
|
|
116
|
|
117
|
522
|
118 //void (__thiscall ***vdestructor_ptr)(Game *, bool);
|
0
|
119 Game__StationaryLight pStationaryLights[25];
|
|
120 char field_2C0[1092];
|
|
121 unsigned int uNumStationaryLights;
|
|
122 Game_Bloodsplat pBloodsplats[20];
|
|
123 int field_938;
|
|
124 int field_93C;
|
|
125 int field_940;
|
|
126 int field_944;
|
|
127 int field_948;
|
|
128 int field_94C;
|
|
129 int field_950;
|
|
130 int field_954;
|
|
131 int field_958;
|
|
132 int field_95C;
|
|
133 int field_960;
|
|
134 int field_964;
|
|
135 int field_968;
|
|
136 int field_96C;
|
|
137 int field_970;
|
|
138 Mouse *pMouse;
|
|
139 int field_978;
|
|
140 Game_stru0 stru_97C;
|
|
141 char field_98C[1148];
|
|
142 int uNumBloodsplats;
|
|
143 int field_E0C;
|
|
144 __int64 field_E10;
|
|
145 int uNumStationaryLights_in_pStationaryLightsStack;
|
|
146 unsigned int bGammaControlInitialized;
|
|
147 unsigned int uFlags;
|
|
148 unsigned int uFlags2;
|
|
149 float fSaturation;
|
|
150 unsigned __int64 uSomeGammaStartTime;
|
|
151 __int64 uSomeGammaDeltaTime;
|
|
152 ThreadWard *pThreadWardInstance;
|
|
153 ParticleEngine *pParticleEngine;
|
|
154 Mouse *pMouseInstance;
|
|
155 LightmapBuilder *pLightmapBuilder;
|
|
156 Vis *pVisInstance;
|
|
157 stru6 *pStru6Instance;
|
|
158 IndoorCameraD3D *pIndoorCameraD3D;
|
|
159 stru9 *pStru9Instance;
|
|
160 stru10 *pStru10Instance;
|
|
161 stru11 *pStru11Instance;
|
|
162 stru12 *pStru12Instance;
|
|
163 CShow *pCShow;
|
|
164 Keyboard *pKeyboardInstance;
|
|
165 GammaController *pGammaController;
|
|
166 int field_E74;
|
|
167 };
|
|
168 #pragma pack(pop)
|
|
169
|
|
170
|
|
171
|
|
172
|
|
173
|
|
174
|
|
175 extern Game *pGame; |