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